Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigating From one page to another Page

 
shambhu kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shambhu kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul,
Since i am new to flex.
So can you tell which MVC i have to look or start?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the ViewStack is one of the most convenient containers for this type of interaction using a "page" paradigm.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic