Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Navigate from one mxml to another mxml

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to navigate from one mxml to another mxml?
Like navigating from one jsp page to another jsp page.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are all sorts of ways to do this. If you are designing an application, and that application is more than a very simple one, you probably should follow some sort of architectural pattern, for example Cairngorm, Pure MVC, Swiz etc.
 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cairngorm is the worst Framework , better start using mate

What I think you should look at is Mate, which uses Flex to it's full potential, and it isn't built around global variables. Instead it helps you write loosely coupled, testable, reusable and maintainable code .
 
shambhu kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ravi, Do you have any sample code for navigation, I tried SWIZ but didn't get for navigation.
If you having code in mate, can youu please send me at "ss2k1in@gmail.com".

Thanks
 
Author
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well going one JSP to another JSP page... or one PHP page to another PHP page - is the common HTML web application mindset which is premised on "pages". Server side pages more specifically...

To go one from one MXML "page" to another MXML doesn't quite translate in that context. A key thing to note is that Flex applications are pure client side. At a basic level Flex application, is one "binary" if you will (a Flash swf file)... so you could go from one Flex application, to another Flex application - not advised however.

So within your Flex application you'll have various visual components that you can control what show's and when either programmatically, or using something called states. In the book we have one chapter on application navigation, and another chapter on using view states. Flex comes with something called navigator containers (e.g there's a tab navigator that let's you put a bunch of tabs up at the top and the content changes depending on which tab you click on).

Another popular navigator container is the ViewStack (http://j.mp/icGfVQ).


 
Tariq Ahmed
Author
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh and on the topic of MVC frameworks - they most certainly can help you with the separation of concerns.

in the book we have a big chapter on architecture and cover in depth the RobotLegs MVC framework, http://www.robotlegs.org/ (one of the authors, Joel Hooks, is a member of the RobotLegs team). Another option is the Swiz framework (http://swizframework.org/). Both are made to be lightweight and simple.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

To go one from one MXML "page" to another MXML doesn't quite translate in that context.




I am sorry for the Late Response , but if your problem is that , navigating from one MXML to another MXML , then why dont you use SWFLoader . As every MXML component would be converted into an swf file , depending upon the Action of the user , use SWFLoader load method of it .

Your google search should be "SWFLoader from Actionscript + Flex 3" ?

Thnaks
 
Greenhorn
Posts: 6
Tomcat Server Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We can use navigational Containers like:- Tabnavigator,Viewstack,Tabbar etc
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic