... beep

BRAIN MESSAGES

Simon de Turck

This is the space i use to express and share my views, rants and interests. Since those are kind of broad, you can find just about anything here! From Actionscript to the Zonesystem and from Zen to Antimatter.
 

Search my Posterous

Tags

photography (10) my photos (9) inspiration (6) respect (5) Antwerp (4) fail (3) typography (3) 3d (1) actionscript (1) Antwerpen (1) View all 20 tags

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!

Loading mentions Retweet
0 Comments
Posted 11 months ago
Theme by Cory Watilo.
More great Posterous themes at themes.posterous.com.