[as3]
imageLoader = new Loader();
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadedImage);
imageLoader.load(new URLRequest(event.target.name));
screenBox.screenHolder.addChild(imageLoader);

function loadedImage(event:Event):void {
trace(event.target.content.width);
}
[/as3]

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation