PDA

View Full Version : flex 2 states question


mantra
01-10-2007, 12:47 AM
I'm only just getting started fiddling with flex 2 and have a question about the best technique to approach something i'm working on.

it requires a login ( username + password ) then once logged in you are presented with 2 panels in vertical display. The top panel has questions, the bottom panel has the question, possible answers and real answer ( these are for editing -- it's so you can pick a question and update it along with it's choices etc )

My question is this. What's the best way to get from the login screen to the application screen ? I've read about using states, but from what i understand states are more for simple changes to an existing layout .. i.e. simple search > advanced search. Not so much for going from a simple login to an application layout.

Any advice greatly appreciated !!:eek:

hangalot
01-17-2007, 01:09 PM
viewstack is the way to go

Assertnfailure
01-17-2007, 06:35 PM
Yep, think of states as altering the contents or appearance of a component, and think of viewstacks as changing between components.