Reputation: 249
im trying to figure out what is better for run-time, creating components in MXML or by SCRIPT?. I built an app that recieves data from a server without knowing how much data exactly. In worst case scenerio , ill need 10 LABELS and 2 DATAGROUPS.But i usually need something like 3 LABELS and 1 datagroup. So what is better? creating all components in advance and than not include in layout the ones i dont need, or make some checks and then create only the components i need by script? . I made some tests , but it wasnt really decisive, run-time was pretty much simillar.Im guessing it must be stated somewhere what is better. Does anyone have an answer for me?
Thanks ahead [=
Upvotes: 0
Views: 398
Reputation: 3350
Flex components can be added to an application using MXML or ActionScript 3.0.
MXML is compiled to ActionScript 3.0. MXML components are just a tag version of an AS3 class.
MXML need flex framework,and mxml project need long compile time.
so mxml is slow.
And this is gud article
http://blog.vivisectingmedia.com/2008/04/the-flex-code-behind-pattern/
Upvotes: 1