mx:Modules, are frakkin neat

by John Wilker in EffectiveUI

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.

Bruce Phillips blog entry

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="" layout="absolute">
    <mx:Panel Title="Module Loader" width="100%" height="50%">
        <mx:ModuleLoader url="iTunesModule.swf" id="mLoader" width="100%" />

And my module (even simpler)

<mx:Module xmlns:mx="" layout="absolute">
    <mx:Label text="I am a module. Hello" />

The result

One Response to “mx:Modules, are frakkin neat”

  1. Matthew Horn says:

    The modules documentation was updated recently, and a new PDF for the chapter on modules can be found here:

    matthew horn
    flex docs

%d bloggers like this: