hi,
i have a tabnavigator in a viewstack, my tabnavigator children control a
menu parented by the main application. the 'show' event is what i'm using
to setup the menu.
so that means that each time the outer viewstack changes, i need to pass the
'show' event down to the current item in the inner viewstack. this is how
i've been doing it, on each child of the outer viewstack, i add this.
public function onCreationComplete():void
{
ViewLocator.getInstance().register(Constants.EMPLOYEES_VIEW,this);
*this.addEventListener(FlexEvent.SHOW,bubbleShowEvent);*
}
*private function bubbleShowEvent(event:FlexEvent):void
{
employeesTabNavigator.selectedChild.dispatchEvent(new
FlexEvent(FlexEvent.SHOW));
}
*there must be a better way of doing this, maybe?
thanks,
d.