Tag Archive for 'mxml'

Flex View Component Techniques in MXML & AS

I’ve been searching for a way to write view code in my Flex & AIR projects that is completely reusable, scalable and simple yet powerful. I’ve read about and used the questionably named ‘code-behind‘ techniques that Ted and Adobe promote. I’ve tried the ‘script src‘ technique that Tink is passionate about. I’ve used ‘view helpers‘ and I’ve even tried the rarely discussed ‘code-in-front‘ technique that Marc has written about. However, I’ve recently been creating my views with a technique I call the ’simple’ method which is in the same school of thought as Marc’s idea. Here’s a table that describes the five methods mentioned above for creating views in Flex:

Flex view code separation techniques table

Continue to try out each technique in a Flex application with source and find out why I especially like the all MXML ’simple’ method …

Continue reading ‘Flex View Component Techniques in MXML & AS’