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

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -