Hello Community,
I have build a module in Flex that I call myModule, this module has a method myMethod. Now I use the ModuleManager to load this module.
mod = ModuleManager.getModule("myModule.swf");
mod.addEventListener(ModuleEvent.READY, modEventHandler);
mod.load();
now I want to access the method
(customComp as myModule).myMethod()
where customComp is the DisplayObject created by the factore.create() method of the module info. This code will not compile as myModule is not a defined property. Can someone help me with that? What do I have to import? The myModule.swf is not an asset, it lies in the bin directory of my project.
Thanks in advance
Sebastian