Noncentz705's Recent Forum Activity

  • You do not have permission to view this post

  • The node-webkit docs suggests Enigma Virtual Box. 'It's free for personal and commercial use. '

    I've used it and it seems to work fine.

  • not a problem, glad I could help.

  • project was saved with a new version

    [attachment=0:2idkg6lv][/attachment:2idkg6lv]

  • no need, just give an id in the project properties bar and add the browser object to your project for the js statement.

    Similar question here and why the opacity idea is better choice

  • Can't play with the z-order, but you could give an opacity of 0 with css, then you'd only see the sprite that's underneath. Or leave the FileChooser outside of layout and Sprite on click Browser Execute Js File_Chooser_id.click();

  • Joannesalfa it look's like the '' are the problem

    Global text global_text = 'Some value'

    "var hold = "&"'"&global_text&"';"&"; window['my_input_id'].value = hold;"

    not sure why i had to escape it like that

  • Joannesalfa, not annoyed just busy. If you can't figure things out maybe someone else can help while I'm gone?

    Quick answer for now... make an input in c2, set id my_c2input, and give on click event with event sheet

    example on clicked call my_callback_function

    Then with your other input (the one not inside c2) have it click my_c2input by giving it an onclick="my_c2input.onclick();" either inline or with javascript.

    and about the callFunc code just open browser console and test a bit or ignore it for now. Sorry can't help more right now.

  • If you have any suggestions or encounter any bugs please let me know.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Only difference is that callFunc is assigned to window['callFunc'], anything after the = sign is the same. If you can't figure it out I can remake the capx... I hadn't saved it before.

    Question about return values

    On Start of layout ('or make the element in index.html after export '

    "var d= document.createElement('div'); d.id =  'my_div';  document.body.appendChild(d);
          d.onclick = function(){return 'SOME_VALUE';}
    "
    [/code:2b3g97st]
    When you want return value 
             Text set text to [code:2b3g97st]Browser.ExecJS("(function callback(){return my_div.onclick();})();")[/code:2b3g97st]
  • Joannesalfa maybe an easier way to trigger functions from the page would be to create a button in your c2 project give it an id and on click do something.. Then with js you should be able to call that event with id_name.click(); A lot less code lol

  • Input :

    A custom input element - type could be radio, checkbox, color, text, password, email ...

    • ... Inputs can be clicked with events
    • ... can be assigned attributes - > input set Attribute 'type' = 'color'
    • ... can compare attribute to help with selections
    • ... can fire an on change event - > i.e suitable for getting color from input
    • ... can append multiple css properties with one action
    • ... can be rotated or fade ...

    Newest v1.08: DOWNLOAD (July 23rd)

    Old versions: Just ask

    Recent additions :

    Actions

    • Insert text index
    • Set className
    • Set id
    • Set z-index

    Expressions

    • id
    • className
    • selectionStart
    • selectionEnd
    • zIndex

    Editor

    • CSSText

    Debugger

    • Stylesheet text

    DEMO

    CAPX EXAMPLE

Noncentz705's avatar

Noncentz705

Member since 28 Apr, 2013

None one is following Noncentz705 yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies