3 Replies Latest reply on Aug 5, 2010 10:48 PM by kglad

    trigger function when variable a certain value?

    celebritymusic Level 1

      Hi

       

      I want a function to be triggered when a certain global var becomes true - I want to do this using an event listener.  I can do it as a one off using an if statement, but how do you set up a listener to trigger the function if the value becomes true at any time?

       

      Thanks guys

       

      Shaun