View Full Version : very basic question: Page navigations?
jarmanje
05-25-2008, 11:14 PM
Hello there. I am trying to understand how you navigate between pages in Flex.
I have two mxml files. main.mxml and content.mxml.
On the main.mxml, i have a button.
When i click this button, how can i then load the content.mxml? Or even, WHERE do i load it? Do i just treat mxml files like a movieclip in flash?
thanks for any help
josnajoseph2007
05-26-2008, 02:09 PM
Okie.just go through the attached code. This might help you........
I have a Application called EX.mxml, in which I define 2 mxml files
Here EX.mxml is the application which is in the main src folder.
Now create a folder called "com" under source.
Save both main.mxml and content.mxml in to "com" folder
***.........Now please go through the attachment...........***
27483
jarmanje
05-26-2008, 10:57 PM
Great example, thanks a lot!
Would you recommend not to exceed 3 mxml files? After reading around, it looks like i should navigate between pages using components. not the treat mxml files like a movie clip :)
It's quite strange seeing how to navigate this moving from just flash AS3.0 experience :)
drkstr
06-02-2008, 11:10 PM
Yes, that is generally the preferred way. Create each of your pages as a component and use a ViewStack to navigate between them.
Best Regards,
~Aaron
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.