Macromedia FLEX announced
I just participated in a Breeze Live presentation by Macromedia product evangelist “Christophe Coenraets:http://coenraets.org/. Topic of conversation was a hot new Macromedia product: FLEX. Formerly known as Royale, FLEX will make a RIA developers life a whole lot easier by introducing an XML based language to generate full-blown Flash RIA’s.
FLEX Basically allows you to specify the elements you wish to place in your RIA (using MXML, an XML based markup language) and then have the server generate the appropriate swf file for you. Connections to webservices and http post/get are no problem and are standard functionality offered by FLEX.
The FLEX Developers Center just opened and there’s a host of interesting reads available:
- Presenting Flex Breeze presentation by Libby Freligh
- Overview of MXML by Christophe Coenraets
- Extending Design Patterns into RIA
- White Paper: The Flex Technology (pdf)
- White Paper: RIAs Deliver Real ROI (pdf)
Besides reading all about it, you can also sign up for the FLEX Beta.
So, what does typical FLEX document look like? Well, the following piece of MXML (graciously taken from Christphes article) creates a simple RIA that allows the user to enter a stock quote and display the result:
- <xml version=“1.0″ encoding=“iso-8859-1″?>
- <mx:Application xmlns:mx=“http://www.macromedia.com/2003/mxml”>
- <mx:WebService id=“wsStock” wsdl=“http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl”>
- <mx:operation name=“getQuote”>
- <mx:request>
- <symbol>{symbol.text}</symbol>
- </mx:request>
- </mx:operation>
- </mx:WebService>
- <mx:Label text=“Enter a symbol:”/>
- <mx:HBox>
- <mx:TextInput id=“symbol”/>
- <mx:Button label=“Get Quote” click=‘wsStock.getQuote.send()’/>
- </mx:HBox>
- <mx:Label id=“quote” fontWeight=“bold”>{wsStock.getQuote.result}</mx:Label>
- </mx:Application>
This would result in the following Flash-app:

Okay, so it’s not a fast-moving, realtime video streaming killer-app. But it was created with about 10 lines of code and runs on virtually all browsers on all platforms. And talking about media and the kinky stuff, that too is possible with FLEX. You can import any jpg, swf, flv or custom component (as long as it is in swc format) you like to spice up your RIA. There are also a lot of possibilities regarding scripted animation of RIA elements.
It’s funny, by the way, I nearly finished my own (albeit much simpler) xml-to-flash form builder when I was invited by Macromedia to join in on the presentation by Christophe. Looks like my attempt to create a generic approach to RIA building has been in vain, as the huge amount of possibilities offered by FLEX really puts my efforts to shame…
