Hai Jeff Roberts, 

  This worked, Thank you very much. 

Thanks
Gireesh

--- In [email protected], "jeff_roberts" <jeff_robe...@...> wrote:
>
> Gireesh,
> I believe the problem you are having is because the ModuleInfo instance that 
> is being created is going out of scope before the module get loaded.  
> Borrowing from your code snippet shown below:
> 
> var minfo:IModuleInfo = ModuleManager.getModule(obj.url);
> minfo.addEventListener(ModuleEvent.READY, onModuleReady);
> minfo.load();
> 
> minfo is a local variable and as soon as the function executes, it's out of 
> scope.  Instead, try making that variable an instance variable or have an 
> array of ModuleInfo instances that you cache until the ready event is handled 
> and then you can remove the ModuleInfo from the cache.
> 
> Thank you,
> Jeff Roberts
> 
> --- In [email protected], Gireesh Kumar <gireeshkumar.g@> wrote:
> >
> > Hi All,
> > 
> >   I am trying to create a small application using 'ModuleManager.getModule'
> > to load modules. but for some reason "ready" event is not getting fired
> > first time, But it works fine if I invoke the method again.  any idea why ?
> > 
> > 
> > I have attached the sample program I am using.
> > 
> > Thanks
> > Gireesh
> >
>


Reply via email to