i'm trying to load a module and add it to a mx:box object called "mod". Here my Code:
var m:IModuleInfo = ModuleManager.getModule("modules/Module_Category.swf");
m.addEventListener(ModuleEvent.READY, function(e:Event):void
{
this.mod.addChild(m.factory.create() as DisplayObject);
});
m.load();
the Problem is that when i try to add it to mod using addChild Flex tells me that in the line using addChild
TypeError: Error #1010: A statement is not defined and has no propeties.
What does it mean?