Flex 4 - Using MXML as views - Any references?
I'm looking to create a flashBuilder document which uses seperate MXML files as "views" which are controlled by states - I believe it's a design pattern of sorts but I'm relatively new to Flas开发者_高级运维hBuilder. I was wondering if anyone knew what design pattern it was and if I can be pointed in the direction of some good references!
FYI I'm looking into using FlashBuilder to design Android apps so any better suggestions would be much appreciated.
Cheers
You can do that the way you want. Just consider such file (MXML) as object. It can be easily added to some outer component, ie. UIComponent. You should read something about it but I bet it's quite simple. Just remember - MXML is just a language that describes an object - you could do that using AS 3.0 instead but it's obviously more convenient to use MXML. Considering this fact all the MXML files are compiled before they run so you can easily manipulate them.
Just try to add such object to some outer component like UIComponent - you can read a few words about it here: HTML in Flex. Just take a look at the function createWindow
Good luck!
精彩评论