... beep

« Back to blog
 

Ryan Campbell » Using MXML without Flex (Example and Source)

Using MXML without Flex (Example and Source)

August 26, 2009 – 11:47 am

I made a few minor changes to the MinimalComps project from Keith Peters and got it playing nicely with MXML. The below application compiles to a tiny 23KB yet makes use of MXML and even data binding.

I added only 2 new extra classes (Container and Application). Container simply adds the ability to add child DisplayObjects via MXML. Application extends Container and handles configuring the stage.

The only changes I made to the existing MinimalComps classes was adding a few metadata tags and modified VBox and HBox to extend Container.

View or download the full source code.

Here’s the source for the main mxml file:

Note: This has nothing to do with the new framework we are building. I just wanted to show off how easy it is to use MXML without Flex.

View or download the full source code.

I was not aware of this, it opens a whole new world of possibilities! Or at least it will drive more pure AS3 developers to use MXML now the Flex Framework is out of the equation!

nice!

Posted
Filed under:
0 Comments

Leave a comment...

Theme by Cory Watilo.
More great Posterous themes at themes.posterous.com.