user interface - How to switch between different applications(mxml file with Application as the root tag) in a big Flex application? -
I'm new to Flex now I'm writing a Flex application. I am planning to split my application into some MXML files (the application is in the original tag). How can I switch from one MXML to another?
What is the best practice for BTW, Design Large Flex App? Just an MXML application and many MXML components or many MXL applications?
Thank you!
It is always advisable to create an application with several MXML files that will allow modularize the application . Anyway you have a main application file and several sub mxml files, which will add you to the main app file as children. The app split in sub files will keep your code short for each file and the development will be faster when the size of the file increases the flex builder display downgrade. Modularing of the code will also reduce the end esophf file size and also reduce the time required to load the application.
You can file a main application and include the following types of children MXML components in it.
& Lt; / Mx: VBox & gt; & Lt; Component: component 3 id = "comp3" /> & Lt; / Mx: hbox & gt; & Lt; / Mx: Applications & gt;
Here component 1, component 2 and component 3 are three separate mxml files and they are stored under 'src' in folder 'component'. The folder named 'component' has been declared in the application root tag. It is such that you can incorporate a child component using MXML. You can use the 'AdBill' method to use the action.
Cheers, PK
Comments
Post a Comment