Hi Giro,
I'd recommend to use ModuleManager - it gives you much more control over
workflow. And in that case you may use interfaces:

protected var info: IModuleInfo;
>
> protected function loadModule ( moduleUrl: String ): void
> {
>           info = ModuleManager.getModule ( moduleUrl );
>           info.addEventListener ( ModuleEvent.READY, moduleReadyHandler );
>           info.addEventListener( ModuleEvent.ERROR, errorHandler );
> }
> protected function moduleReadyHandler ( event: ModuleEvent ): void
>  {
>           var module: IMySuperCustomModule = info.factory.create() as
> IMySuperCustomModule;
>           module.dataProvider = someSuperImportantData;
>           addChild ( module as DisplayObject );
>  }
>

Cheers,
Oleg

2008/7/11 David Gironella <[EMAIL PROTECTED]>:

>    I use a moduleloader and need to pass parameters to module. How can I
> do it?
>
>
>
> Thanks
>
> Giro.
>  
>



-- 
Best regards,
Oleg Filipchuk

Reply via email to