You should look into Custom MXML Components (see the LiveDocs).

Create a component for each outcome.

Then, you can put these three components in a ViewStack.

Depending on the outcome of the login process you can then set the
selectedIndex of the viewstack.

 

This results in your main.mxml file, and three more mxml files for each
component.

 

Cheers,

Alger 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sirickhoop
Sent: Mittwoch, 20. Februar 2008 21:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I navigate to an mxml file from a login
file?

 

I've created a login that will send users in 1 of 3 direction (i.e. 
administrator, teacher, or student). I want each type of user to link 
to a separate mxml file because, if I use States, my file will become 
quite large and I don't want to have to navigate through long files 
when I'm coding. 

My question: How do I link to an another mxml file from the main.mxml 
file?

Thanks!

 

Reply via email to