I understand “best practice” for communication from a child component to a parent is to use the event system.  This makes the component easily reusable.

 

A simpler way is to use Application.application to reference the scope of the root application.  Something like:

Application.application.myViewStack.selectedIndex = 3;

 

Tracy

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of jlentz2112
Sent: Saturday, September 30, 2006 10:32 PM
To: [email protected]
Subject: [flexcoders] Navigating between Screens

 

Hi,

I'm new to Flex 2 development. I've seen some tutorials on
ViewStacks, but they used a navigator bar or tab bar to switch between
screens. I've got an ap that won't have the bars or tabs to switch
by. It starts with a login screen, then goes to a data screen that
has buttons that when clicked will either return to the login screen
or continue on to another screen. I've tried to have the component
screen select the next screen in the ViewStack, but the ViewStack
isn't in the scope of the child. What is the best way to implement
this kind of navigation? Thanks for the help.

jlentz

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to