how to get loder content width???
hi i have tried to get width of my thumbnail, it is loading and showing jpg image, I stuck to find it's width.
ld=new Loader()
ld.load(new URLRequest(obj.@thumb))
addChild(ld)
ld.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,preload)
private function preload(event:ProgressEvent):void{
var gbt:int=event.bytesLoaded
var gbl:int=event.bytesTotal
var tl:int=Math.round((gbl/gbt)*100)
if(TL==100){
trace(ld.content.width)<<< return Null
var mc:MovieClip=MovieClip(ld.content)
trace(mc.width)
}
}