We fixed a bug in HotFix2 and Moxie where modules didn't unload.  Now,
if you don't keep a handle to the module it won't load because as soon
as it finished, GC runs and if there is no handle to it, it goes away.

 

Var module:IModuleInfo was your only handle but it is local so as soon
as it goes out of scope it can go away.

Move it to an instance variable and you'll be fine.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Thursday, June 14, 2007 2:15 PM
To: [email protected]
Subject: [flexcoders] Flex3 :: ModuleManager :: not dispatching READY

 

Hi,

I have this simple setup;

A module in ;

/modules/HelloWorldModule.swf

in creation complete in the main application;

            private function creatModule():void
            {
                var module:IModuleInfo =
ModuleManager.getModule("modules/HelloWorldModule.swf");
                module.addEventListener(ModuleEvent.READY, readyHandler)
                module.load();
            }
            
            private function readyHandler(event:ModuleEvent):void
            {
                trace("READY")
            }

When I test the project, I get...

[SWF] modules/HelloWorldModule.swf - 504,327 bytes after decompression

I cannot for the life of me get READY to be dispatched.

PROGRESS works fine, and it shows the whole swf being loaded.

It has been a few since I used module manager, is there anything I am
missing? 

Peace, Mike

-- 
Teoti Graphix
http://www.teotigraphix.com <http://www.teotigraphix.com> 

Blog - Flex2Components
http://www.flex2components.com <http://www.flex2components.com> 

You can find more by solving the problem then by 'asking the question'. 

 

Reply via email to