Thanks for your reply, but the otherView was not going to be a subcomponent of userView.
I'll try to better define what I am trying to accomplish.
My app started from the Flex Slacker: http://puremvc.org/pages/demos/AS3/Demo_AS3_Flex_Slacker/
- The splash screen contains a logon screen.
- The first button "Gallery" is available to all
- If a regular user logs in, the next button "Editor" will be available.
- If a admin user logs in, buttons "Editor" and "Profile" will be available.
I am not really sure how best to accomplish this.
How could <mx:Application> Listen for notifications ?
I was thinking about putting a new view "<view:HeaderDisplay>" inside of the "<mx:ApplicationControlBar>", but then I have multiple views.
What would be the best way to design this ?