Apache – Adobe Flex – How to jump view

apache-flexflex3

I understand that we need to create MXML file to define a view. Suppose on user click of a button I want to show another view defined in another MXML file. How can I do this?

Best Answer

You could use a viewstack. each item in the viewstack would be a different MXML file so when the user clicks a button you change the selected index of the viewstack which makes the view change.

You could probably do with checking out the examples in http://www.adobe.com/devnet/flex/tourdeflex/ this will help explain so much more than a simple answer will. From your question it sounds like you need to get the basics of flex first and the tour de flex app contains loads of examples with source code. HTH.

Related Topic