View Full Version : Flex flash 4 (Flex Gumbo) ModuleLoader.content
grozavpaul
July 2nd, 2009, 01:07 PM
In Flex 3 if i wanted to access the content of a loaded module i just had to use .content property (and make sure the module was loaded). But now i see that flash 4 doesn't have this property anymore. So what can i do to access the content of a module?
grozavpaul
July 2nd, 2009, 01:32 PM
sorry, .content is for SWFLoader not for ModuleLoader :sen:... my mistake. But anyway how can i access the content of a loaded module?
grozavpaul
July 2nd, 2009, 01:44 PM
ModuleLoader.child.x to access an child with the id x. Thanks anyway
SmivaL
March 11th, 2011, 12:26 PM
hi!
so what about access to child if my Module is not-visual?
child propery = null :(
I load CSS style module (compiled css) from byteArray
its necessarily requirement.
mod = new ModuleLoader();
mod.addEventListener(ModuleEvent.READY, onLoadModule);
mod.loadModule("", myByteArray);
private function onLoadModule(e:ModuleEvent):void
{
trace(mod.child); // output - null
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.