why Ifile.getData("flash.display.Loader").width==0;

1 view
Skip to first unread message

clon...@gmail.com

unread,
Jan 19, 2009, 4:53:51 AM1/19/09
to masapi

see the code

var cl:CompositeMassLoader = new CompositeMassLoader();
var file1=cl.addFile("img/1.png");
var ml:IMassLoader = cl.massLoader;
function onMassLoadComplete(evt:Event):void {
var display=file1.getData("flash.display.Loader");
this.addChild(display);
trace(display.width) // return 0????
}
ml.addEventListener(Event.COMPLETE, onMassLoadComplete);
cl.start();

Cédric Tabin

unread,
Jan 19, 2009, 4:47:16 PM1/19/09
to mas...@googlegroups.com, clon...@gmail.com
Hello,

Did you try :

trace(display.content.width)

?

Regards,
Cedric
Reply all
Reply to author
Forward
0 new messages