it is because of eventPropagation. If the event is captured on child as well as parent it propagates from child to parent, and hence the result is similar like yours.
Try using event.stopPropagation before capturing the target. Anand On Feb 23, 5:35 pm, Ramesh A <[email protected]> wrote: > hi akshay > > assign eventListener(FocusEvent) to each boxes when u create boxes in > dynamically. > > On Fri, Feb 13, 2009 at 6:59 PM, akshay gore <[email protected]> wrote: > > > Hi all, > > I hv a canvas in my application in that i am adding boxes > > dynamically.. if particular box is selected then i am dividing that > > box in this i am creating 2 new boxes and adding as child in that > > selected box.. but now the problem is that when i am trying divide > > that child box it does not, inside of that it is dividing parent box.. > > Here i am using focusevent in which i am storing the reference of that > > box .. n using this reference for dividing purpose .. but here problem > > is that its returning me the reference of parent , n here i want the > > reference of the focused child box.. > > Can u pls help me.. where am i wrong ?? > > > Thnx in advance > > Regards, > > Akshay --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

