Make sure the SWF is where you think it is.  Other than that, looks ok.  Attach 
listeners to events and see what’s happening.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Eric Dunn
Sent: Tuesday, February 17, 2009 10:48 AM
To: flexcoders
Subject: [flexcoders] Module Issue....

I have done this twice before and  apparently I am forgetting something..
      1) Create a main app with add a ModuleLoader and a button to load module.
      2) Create Module - added some text field to display data..
      3)  Run app and click button to load module..
I click the button and nothing happens...

What have I forgotten to do? Am I not importing something I need to declaring 
something?  I have looked at the other code and don't see any difference other 
than lots more stuff...

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
<mx:Script>
    <![CDATA[
            public funct! ion doItClick():void{
                pissOff.url = "modules/loaded.swf";
            }
        ]]>
</mx:Script>
    <mx:Canvas>
        <mx:ModuleLoader id="pissOff"  width="227" height="156"/>
    </mx:Canvas>
    <mx:Button click="doItClick()" label="click me" x="235" y="134"/>
</mx:Application>

<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" 
width="400" height="300">
    <mx:Canvas>
        <mx:Text text="Will it work?" x="123" y="29"/>
    </mx:Canvas>
</mx:Modu! le>




Eric W Dunn
Adaption Technologies!
281- 465-3326
[email protected]

Reply via email to