if your structure is that simple, in the child you could do parent.selectedChild = newChild. It depends in what scope the code is executing. If your viewstack and children are defined in a single MXML file, then in a script block myviewstack would still be in scope and myviewstack.selectedChild would work.
When dealing with similar situations my approach is to have the child dispatch a custom event, and have that event bubble and be handled by any appropriate listeners. So your viewstack could add an event listener for the "ChangeChildView" event, and that event could define a child index or enum representing the child to switch to. Then your children views dispatch the ChangeChildView event without being aware of any details about how it will be handled. On Fri, Apr 4, 2008 at 2:49 PM, Rubeel <[EMAIL PROTECTED]> wrote: > Hoe can i change the viewstack from a child container. > > lets say if i have a viewstack and i move to a child by using the > selectedChild property, can i call myviewstack.selectedChild from the > child itself > > thanx in advance > > >