3 Replies Latest reply on Oct 19, 2011 1:57 PM by eegz

    Best practice for passing parameters to a Timer event handler?

    eegz

      The code hinting is suggesting that I use a Timer object rather than setTimeout or setInterval, however I need to pass a parameter to the timer handler.

       

      What is the best practice for doing this?

      + Subclass Timer?

      + Subclass TimerEvent?

      + Global variable?

      + other?

       

       

      Thanks