what's the difference between MXML and Actionscript3
what's the difference between MXML and Actionscript3 wh开发者_StackOverflow中文版en we need to use MXML ??
MXML is a way to design and layout a flex application and Action Script 3 is where all the logic is used.
This of MXML as HTML and ActionScript as Javascript.
When building a flex application, you create and design the visual elements using MXML. Its an XML/HTML style language Of which gives you the ability use a component in a way such as:
<progressbar id='progress_bar' />
when your flex application compiles itself, this stuff is converted to Actionscript 3.
You don't need to use MXML specifically. It will speed you up and make it super easy to develop you interfaces, but you can still manipulate elements on the stage using actionscript.
精彩评论