Eric, there is error in you code, in closing Tag of </mx:module>
Rectify it may solve your problem. --- In [email protected], Eric Dunn <ed...@...> wrote: > > I am a newbie and not sure what type of listeners you mean... > > The thing that stands out the most for me is the Module swf file is never compiled.... I moved both the main mxl and module mxl into the root to insure they are where they aught to be... > > Have any ideas as to why the module is not compiled? > > Eric W Dunn > Adaption Technologies > 281-465-3326 > ed...@... > > ----- Original Message ----- > From: "Alex Harui" <aha...@...> > To: [email protected] > Sent: Tuesday, February 17, 2009 5:14:13 PM GMT -06:00 US/Canada Central > Subject: RE: [flexcoders] Module Issue.... > > > > > > > > > > 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. > > 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 > ed...@... >

