How would I run a method of a script from a particular event?

How would I run a method of a script from a particular event? I’d rather not create a new script for every little event.

]]>

3 Commentsto How would I run a method of a script from a particular event?

  1. Anonymous says:

    < ![CDATA[

    Check for event.getSource

    ]]>

  2. Anonymous says:

    < ![CDATA[

    How would that be implemented? Ideally I’d want to run the script once when LL loads so the main variables are set once and everything is initialised. Then I want to be able to run functions from that script that can use those main variables when certain elements are tapped or long tapped etc.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    var s=LL.getEvent().getSource();


    if(s==”C_LOAD”){


    test=”globalTestVar”;


    }


    if(s==”I_CLICK”){


    Android.makeNewToast(test,true).show();


    }

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *