Event Propagation Phases

There are three phases in event propagation where Flex looks for event listeners:

  1. Capturing phase: Flex checks to see which ancestors are registered as listener’s for the event starting from the root application object to the direct ancestor of the target
  2. Targeting phase: Flex invokes the target’s event listeners 
  3. Bubbling phase: Each registered listener is given a chance to handle the event starting from the direct ancestor of the target to the root application object.
    flex event phases

Terms to know:

  • event.target: The target property refers to the dispatcher of the event
  • event.currentTarget: The currentTarget property refers to the current object that is processing the event
  • eventType: Type of event broadcast by the object when an event occurs and what is being listened for by the event handler
  • event listener: The function or class method that you write to respond to specific events. They’re also known as event handlers.

There are three phases in event propagation where Flex looks for event listeners: Capturing phase: Flex checks to see which ancestors are registered as listener’s for the event starting from the root application object to the direct ancestor of the target Targeting phase: Flex invokes the target’s event listeners  Bubbling phase: Each registered listener is…

Leave a Reply

Your email address will not be published. Required fields are marked *

Event Propagation Phases

There are three phases in event propagation where Flex looks for event listeners:

  1. Capturing phase: Flex checks to see which ancestors are registered as listener’s for the event starting from the root application object to the direct ancestor of the target
  2. Targeting phase: Flex invokes the target’s event listeners 
  3. Bubbling phase: Each registered listener is given a chance to handle the event starting from the direct ancestor of the target to the root application object.
    flex event phases

Terms to know:

  • event.target: The target property refers to the dispatcher of the event
  • event.currentTarget: The currentTarget property refers to the current object that is processing the event
  • eventType: Type of event broadcast by the object when an event occurs and what is being listened for by the event handler
  • event listener: The function or class method that you write to respond to specific events. They’re also known as event handlers.

There are three phases in event propagation where Flex looks for event listeners: Capturing phase: Flex checks to see which ancestors are registered as listener’s for the event starting from the root application object to the direct ancestor of the target Targeting phase: Flex invokes the target’s event listeners  Bubbling phase: Each registered listener is…

Leave a Reply

Your email address will not be published. Required fields are marked *