How is moduleContent set up.  Is it on the display list?  Who is dispatching 
the event?  Code in the module class or some other object?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of cuttenv
Sent: Tuesday, August 18, 2009 6:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Module and Application Communication.



Hey Alex,
I set it up so the event is dispatching when I clickity click a button. So I 
know for sure the event is being dispatched.

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui <aha...@...> wrote:
>
> I think you would have had some other problem if it was security/domain 
> related.
>
> You didn't say when the event gets dispatched, so maybe it gets dispatched 
> before you add your listener.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On 
> Behalf Of cuttenv
> Sent: Tuesday, August 18, 2009 3:21 PM
> To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Re: Module and Application Communication.
>
>
>
> not sure. How could I test that? They are both on the same domain (locahost) 
> and even in the same directory. Wouldn't it throw a sandbox violation error 
> if it was that?
>
> --- In 
> flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>,
>  Rick Winscot <rick.winscot@> wrote:
> >
> > Have you tested to see if this is a security / app domain issue?
> >
> > Cheers,
> >
> > Rick Winscot
> >
> >
> > On 8/17/09 1:24 PM, "cuttenv" <cuttenv@> wrote:
> >
> > >
> > >
> > >
> > >
> > > I have a rather straight forward question.
> > > I am creating a module like this:
> > > private var modInfo:IModuleInfo
> > > private var myModule:MyCustomMdoule;
> > >
> > > //In creation complete of application
> > > modInfo = ModuleManager.getModule('myMod.swf');
> > > modInfo.addEventListener(ModuleEvent.READY, onModuleReady);
> > > modInfo.load();
> > >
> > > //In tho onModuleReady command
> > > myModule = modInfo.factory.create() as MyCustomModule;
> > > moduleContent.addChild( myModule );
> > > myModule.addEventListener( 'customEventDispatchedByModule', onEvent );
> > >
> > > //Inside my module there is
> > > dispatchEvent( new Event('customEventDispatchedByModule',true) );
> > >
> > > Even though the code for the dispatch event is running the handler never
> > > runs... am I doing something wrong?? or do module not dispatch events??
> > >
> > >
> > >
> > >
> > >>
> >
>

Reply via email to