getChildByName + Loader

What seemed logical to do is not working apparently.

I have four buttons named button_0…button_3 on the stage and compiled into assets.swf. Essentially, I want the layout to be handled by designers and placed on stage as it should appear. However, this old approach is giving me a trouble with AS3. Seems to be the problem with the Loader class allowed to have only one child. So how do you get access to the children of that child and its properties (such as x,y,etc.)? Any ideas?


here’s the code:

public class Test {
var assets:Loader;
public function Test()
assets = new Loader();
assets.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener);
assets.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorListener);
assets.load(new URLRequest(‘assets.swf’));
private function completeListener(e:Event):void
var loaderInfo:LoaderInfo = as LoaderInfo;
var m:MovieClip= MovieClip(loaderInfo.content);
array= new Array();
for (var i=0; i<m.numChildren; i++)
array*.x = 50+150i;
.y= 100;