Select to view content in your preferred language

Linking MXMLs

644
3
05-15-2012 01:29 PM
AmandaHutsel
Emerging Contributor
I'm looking for code to create a link to navigate from one MXML to another.  Is it possible to do without using Viewstack?
Tags (2)
0 Kudos
3 Replies
ThomasMcCracken
Deactivated User
Amanda,

I use components in Flash Builder and transition from one mxml to another using States.  For instance, in my application I have a portal where a user can choose which map they would like to view.  Once clicked, the state changes to the specific map state where the component with the map comes in.  Hope this helps!

Thomas McCracken
GIS Analyst
Georgia Power Company
0 Kudos
AmandaHutsel
Emerging Contributor
I don't think States is going to work because I'm not just switching maps, I'm completely changing web pages.
0 Kudos
ThomasMcCracken
Deactivated User
That's what States is meant for in Flex.  It's like changing "web pages" without changing pages.  Everything in a Flex app is within a single html wrapper.  To change "pages" you simply use different States to remove and add what you want into the project.  Check this out for more info:  http://www.adobe.com/devnet/flex/videotraining.html.  It explains States and "pages".
0 Kudos