as the title states, I am trying to add children to a dynamically added swf file, using AS3, before I add it to stage, is this possible?
Here is the code I have thus far,
AS3:
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest(glo.bal.base_url+"videos/vid_1.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler_one);
mLoader.load(mRequest);
function onCompleteHandler_one(loadEvent:Event)
{
//Here I would like to add a child to the swf file before I append it to stage
video_container.addChild(loadEvent.currentTarget.content);
}
Inside the vid_1 swf there is a movie clip called box_one, I would like to append a image to box_one, and only have the swf added to stage after the image file has been added to box_one.
Any help would be greatly appreciated guys, thanx in advance!
Just to be safe, you might wanna wrap that in some error checking code:
So yeah it’s possible.