| Author |
Navigating From one page to another Page
|
shambhu kumar
Greenhorn
Joined: Aug 07, 2008
Posts: 18
|
|
I want to create one login screen, after successful login i want to forward to another page. Like in simple jsp, once user login successfully, there is a success page.
How to do this in Flex 4?
One way is using states, show to another state.
What are the options?
Please suggest.
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
You options are legion, though I'm not sure I'd recommend view states as a control mechanism for your view. You might investigate a pattern such as PureMVC, Cairngorm, Swiz etc.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
shambhu kumar
Greenhorn
Joined: Aug 07, 2008
Posts: 18
|
|
Thanks Paul,
Since i am new to flex.
So can you tell which MVC i have to look or start?
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Its really your choice. I would recommend reading up on the frameworks mentioned above - none are that complicated, so it it shouldn't take long. From personal experience, Cairngorm is a bit limited, and PureMVC can feel a bit heavy weight. But try them for yourself.
|
 |
shambhu kumar
Greenhorn
Joined: Aug 07, 2008
Posts: 18
|
|
Hi Paul,
I created one MVC example with SWIZ. But i don't know how to navigate from one view to other.
Even i created login page which is checking id password from database nad showing success fail message,
but i want to show some other view (i.e *.mxml file) or navigate to some othe *.mxml.
If you have any sample code for that can you provide me?
Any Flex MVC code will work.
|
 |
Joel Hooks
author
Greenhorn
Joined: Feb 17, 2010
Posts: 15
|
|
|
the ViewStack is one of the most convenient containers for this type of interaction using a "page" paradigm.
|
 |
 |
|
|
subject: Navigating From one page to another Page
|
|
|