One of the reason that I always avoid using event.parent.parent.parent... is
that if "parent" gets changed to a different instance it might generate
runtime errors.

For example lets suppose event.parent used to return an object of Title
Window. Assume you are using a specific attribute of this TitleWindow after
getting it. Now if you have changed the parent to VBox which does not have
the Title Window attribute, your code would fail at runtime.

Rgds,
Ashish

On Wed, Jun 23, 2010 at 7:59 AM, Ajantha <[email protected]> wrote:

> Hi ,
>
>  I would like to know why using event.parent.parent.parent ..  in
> order to get to an instance a bad practise??
>
> can someone explain ?
>
> --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
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.

Reply via email to