In ActionScript 3, most events use the capture / target / bubble model, which is pretty popular today:
When an event occurs, it moves through the three phases of the event flow: the capture phase, which flows from the top of the display list hierarchy to node immediately before the node target; target phase, which contains the target node; and the bubbling phase that flows from the node after the target node supports the display list hierarchy.
However, some events, such as an event of the Sprite class enterFrame, do not capture the OR bubble - you must subscribe directly to the target in order to detect the event. The documentation refers to them as broadcast events. I assume that this is for performance reasons, as these events will be fired continuously for each sprite on the scene, and you do not want to deal with all this excessive distribution of events.
I want to send my own broadcasts. I know you can prevent the bubble event ( Event.bubbles = false), but can you get rid of the capture?
source
share