Hello Marilynn
I am having the same problem in the same way, I want to set the size of a swf file that I am is dynamically loaded from the server.
I tried to use the getChildByName() method to get this attribute but it is still not working.
it keeps coming up 0
Code:
for (var i:int = 0; i< xmlList.length(); i++) {
imageLoader = new Loader();
var imageHolder:holder = new holder();
addChild(imageHolder);
imageLoader.load(new URLRequest(xmlList[i].attribute("source")));
imageHolder.cacheAsBitmap = true;
imageHolder.height = xmlList[i].attribute("height");
imageHolder.width = xmlList[i].attribute("width");
imageLoader.name = "image" +i;
imageText.text = xmlList[i];
addChild(imageLoader);
imageLoader.mask = imageHolder;
trace(getChildByName('image'+i).width);
}
I have a mask that goes over the swf files so I know that the you can set these properties when you ad the child from your library but it does not seem to work for files added from the server.
Does anyone out there know what is going on?