[AS3 SNIPPET] Priority level of event listener
1 2 3 4 5 | addEventListener("event", handler1, false, 1); addEventListener("event", handler2, false); addEventListener("event", handler3, false, 3); addEventListener("event", handler4, false, 1); addEventListener("event", handler5, false, 2); |
Listener methods are executed in this order:
- handler3
- handler5
- handler1
- handler4
- handler2
If two or more listeners share the same priority, they are processed in the order in which they were added.
The higher the number, the higher the priority.
I don’t usually reply to posts but I will in this case, great info…I will add a backlink and bookmark your site. Keep up the good work!
surface encounters macomb
[AS3 SNIPPET] Priority level of event listener http://hex.io/1886 #as3 #flash
This comment was originally posted on Twitter
RT [AS3 SNIPPET] Priority level of event listener http://hex.io/1886 #as3 #flash: [AS3 SNIPPET] Priority level.. http://tinyurl.com/nouaax
This comment was originally posted on Twitter
RT @AS3hash: RT @rbartoli: [AS3 SNIPPET] Priority level of event listener http://hex.io/1886 #as3 #flash #as3
This comment was originally posted on Twitter