actionscript 3 - Is Event TIMER always dispatched before TIMER_COMPLETE? -
is flash.utils.timer object's event timer dispatched before timer_complete?
during 2nd event, nullifying stuff required during 1st event; order of prime importance. checked docs , there no guarantee dispatching order.
in tests i've done seems case, don't want distribute publicly software without confirming first.
you can avoid problem using timerevent.timer only:
private function ontimer(event:timerevent) { // ... if (timer.currentcount == timer.repeatcount) { // timer complete } }
Comments
Post a Comment