moduleInfo is not a display list object and therefore there is no
hierarchy to have a capture phase.

 

You'll have to implement some way of tracking loaded modules.  A
dictionary of ModuleInfos might work.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sebastienpastor
Sent: Sunday, April 20, 2008 1:36 AM
To: [email protected]
Subject: [flexcoders] detecting ModuleEvent.READY from anywhere in
application

 

Hello all,

I have this application with many modules. I am using ModuleManager 
to preload them. What i try to achieve is to be able to detect when a 
module is ready to be instanciated from the main application and 
other modules (that have been loaded before the modules they are 
about to use of course)

I thought i could use a thing like this :

addEventListener(ModuleEvent.READY,myHandler)

from anywhere in my Application and other nmodules. But it seems like 
there is no bubbles phase at all, and cannot seem to detect the 
capture phase.

Of course, myModuleInfo.addEventListener(ModuleEvent.READY,myHandler) 
works perfectly.
Is there absolutely no way to capture ModuleEvent.READY except from a 
ModuleInfo object ? or am i doin somehting very wrong ? Any help 
would be greatly appreciated.

Thanks

Sebastien

 

Reply via email to