Hi Noorul,

They are two different properties associated with an event. Consider
the following scenario:

<s:Application>
   <s:Panel>
      <s:Button/>
   </s:Panel>
</s:Application>

If an event is dispatched by the button it will go thru capture,
target and bubble phase and traverse as shown:

Capture Phase               Target           Bubble
Application -> Panel ->   Button  ->     Panel->Application

The currentTarget will always refer to the component where event is
currently located while going thu this cycle. For example the
currentTarget(ct) and target(t)
 will change as:
Capture Phase                                       Target
Bubble
Application                         -> Panel ->   Button  ->     Panel-
>Application
ct:Application                          Panel       Button
Panel   Application
t:Button                                 Button       Button
Button    Button

So at target phase they will both be same.

Thanks,
Akhil Mittal




On Feb 6, 4:48 am, Noorul <noorul1...@gmail.com> wrote:
> I was asked the following questions in interview
>
> What is the currentTarget,Target in Flex
>
> plz advice.

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

Reply via email to