Delay a callback
-
Is it possible to delay a callback?
I have a button but I want to delay its purpose for a few seconds while changing presets...
-
@BWSounds put it all in a timer...
-
@Lindon
Would I do that in the onTimer ? -
@BWSounds declare a system level timer:
lookup:
myTimer = Engine.createTimerObject();
then create a timer call back:
look up:
myTimer.setTimerCallback(var callbackFunction)
in your button callback call the timer:
myTimer.startTimer(int intervalInMilliSeconds)
in the timer itself stop the timer...