Accept it, we all have used events but never really got to know what goes behind the scenes.
So here in vivid little words, I try to throw some light on this.
Here goes my “EVENTS for DUMMIES!”
Flash Player 9 implements an event model based on the World Wide Web Consortium’s (W3C) specification
You have probably heard of these names but never got to know why three phases are used??
The reason is simple.W3C recommends so! J
• Capture: During this phase, Flash Player makes a first pass to check every object from the root
Ex:
If component 1 has a code like component2.addEventListener(“eventname”,myfunction);
Component 1 will be added to a list in this phase.
• Target: At this phase, event object properties are set for the target and all registered event
Event.name and event.whatever is set now!
• Bubbling: Finally, the event flows back from the target component all the way up to the root
The three event phases described above don’t apply to the user-defined events because Flash Player
Hope it helps!
2 comments:
eso ye todo mentira. no funciona nada de lo que dices. Cabestro
What the hell was that!?
Post a Comment