Given the code:

var firstImage:Loader = new Loader();
var empty_mc:MovieClip=new MovieClip();
var url:URLRequest = new URLRequest();

addChild(empty_mc);
url = new URLRequest("test.jpg");
firstImage.load(url);
firstImage.x = 10;
firstImage.y = 10;
empty_mc.addChild(firstImage);

why does

trace (empty_mc.width);

yield 0?

and what do I have to do to get the image centered along the lines of:

empty_mc.x = 70-(empty_mc.width/2);

Thanks!

William


--
William Adams
senior graphic designer
Fry Communications


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to