Hi,

I need to load a module inside a Sprite which is inside a UIComponent.

when I load the module and attach it to the mxml it works:

var c = new ModuleLoader();
c.addEventListener(ModuleEvent.READY,onLoadModule);
c.load(test.swf);
this.addChild(c); //'this' is the mxml

when i want to attach it to a sprite inside a uicomp:

var c = new ModuleLoader();
c.addEventListener(ModuleEvent.READY,onLoadModule);
c.load(test.swf);

var u = new UIComponent();
var s = new Sprite();
s.addChild(c);
u.addChild(s);
this.addChild(u); //'this' is the mxml


I do get the READY event, but the component is not visible in my mxml:-(

Any idea?

Reply via email to