[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-17 Thread bhaq1972
Thanks for the info. I won't need an example as your explanation has given me an insight. Very useful. --- In flexcoders@yahoogroups.com, "Netaman" wrote: > > > I use viewStack.removeAllChildren(); > > also, what I do with the NavigatorContent, is everytime I create a new > NavigatorContent

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-16 Thread Netaman
I use viewStack.removeAllChildren(); also, what I do with the NavigatorContent, is everytime I create a new NavigatorContent container I load the resulting child UI component object into an arrayCollection then when I need to get to the object inside the NavigatorContent I use the viewStack.se

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-16 Thread bhaq1972
thanks --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > nc = null; > > --- In flexcoders@yahoogroups.com, "bhaq1972" wrote: > > > > myPanel.owner is the same as myPanel.parent so that won't work. > > > > Making it a property would work. What would the disadvantages be with using > > m

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-15 Thread valdhor
nc = null; --- In flexcoders@yahoogroups.com, "bhaq1972" wrote: > > myPanel.owner is the same as myPanel.parent so that won't work. > > Making it a property would work. What would the disadvantages be with using > myPanel.parent.parent.parent (a trace shows this to be the navigatorcontent)? >

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-10 Thread bhaq1972
myPanel.owner is the same as myPanel.parent so that won't work. Making it a property would work. What would the disadvantages be with using myPanel.parent.parent.parent (a trace shows this to be the navigatorcontent)? I wonder why there is no such property like 'elementParent' to go with addEl

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-09 Thread valdhor
Or make nc a property of the class so you can use it in any method. --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > Try myPanel.owner > > > On 6/9/10 8:23 AM, "bhaq1972" wrote: > > > > > > > I added a Panel component into a NavigatorContent > > public function aMethod():void >