mx:Modules, are frakkin neat
Posted on | February 14, 2007 | 1 Comment
I was talking to a potential client about using swf loader to build apps that coud use smaller apps as plugins more or less. IE.
"let’s use a data grid to show this information from the main app, instead of the chart we’re using now."
I knew that modules had been added to 2.0.1, and had seen Roger’s MAX Preso on the topic, so thought to try that approach, which requires less effort to get the modules to talk to each other and the parent app. Did some searching, and flexcoder s reading
and found some great resources.
Kevin Hammer’s entries (1) (2)
By far, what (more or less) solidified the concept, Peter Ent
before I found Peter’s entry, i wanted to just see if I could get the most basic example to work so…
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel Title="Module Loader" width="100%" height="50%">
<mx:ModuleLoader url="iTunesModule.swf" id="mLoader" width="100%" />
</mx:Panel>
</mx:Application>
And my module (even simpler)
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label text="I am a module. Hello" />
</mx:Module>
The result
Comments
One Response to “mx:Modules, are frakkin neat”
Leave a Reply



February 14th, 2007 @ 12:00 am
The modules documentation was updated recently, and a new PDF for the chapter on modules can be found here:
http://blogs.adobe.com/flexdoc/2007/01/modules_documentation_update.html
hth,
matthew horn
flex docs