So Flash is pretty sweet for low-level graphics coding. But it’s a bit, er, low-level for full UI development. Enter MXML, what HTML would look like if Adobe designed it. Luckily, compiling it doesn’t appear to be any more difficult than with ActionScript. Simply dump this into a HelloWorld.mxml file:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel title="Hello world!" width="100%" height="100%">
</mx:Panel>
</mx:Application>
And then compile it as so:
\flex\bin\mxmlc.exe HelloWorld.mxml
And it’ll spit out HelloWorld.swf. Drop that into a webpage or run it as normal:
\flex\player\debug\SAFlashPlayer.exe HelloWorld.swf
And voila — your first MXML application:
