Hi,

    I hope this is useful for u to learn event phases...

In Flex’s event propagation mechanism, you can choose to handle the event at
the target or in a container of the target


   -  Referred to as event bubbling
   -  Three phases in event bubbling in Flex’s event propagation sequence


*Capturing phase:* Ancestors are checked to find which are
registered as a listener for the event starting with the
application object to the direct ancestor of the target.

*Targeting phase:* Flex invokes the target’s event listeners.

*Bubbling phase:* Ancestors are checked to find which are
registered listener for the event starting with the direct
ancestor of the target to the application object (this is the
reverse of the capturing phase)

This is a flow for event phase,

(----->*Capturing Phase*------>)
Application - VBox - Button    --->(three events are *Targeting phase*)
(<------*Bubbling Phase*<------)

Every Event object has a *target *and a *currentTarget *property that helps
you to keep track of where it currently is in the process of propagation

   -  The *target *property refers to the dispatcher of the event.
   -  The *currentTarget *property refers to the current object that is
   being  examined for any listeners for the event.



            With Regards,
           MK.Nasurudeen.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Attachment: example.doc
Description: MS-Word document

Reply via email to