Is there a way to schedule a task (function) to execute at a given date/time with Action Script 3.0? I mean something like schedule(myFunction:Function, dateTime:Date). Thanks
Is there a way to schedule a task (function) to execute at a given
Share
Not natively per se.
SetTimeout as outlined in another answer is probably you’re easiest bet. But if you had many things you wanted scheduled, here is a class that could manage it: (it could be modified to use setTimeout instead of a timer, but I prefer timers)
Use as follows: