hello everyone
i am trying to set x positions of different images which are being
dynamically loaded depending upon their width
i m writting this code in a for loop
imageLoader[i].load (new URLRequest(
xmlLettersList[i].attribute("img")));
imageLoader[i].width = imageLoader[i].addEventListener
(Event.COMPLETE, imgLoaded);
trace("width = " + imageLoader[i].width);
function imgLoaded (e:Event):Number
{
var bm:Bitmap = Bitmap(e.target.content);
trace("inside function image Loaded");
return bm.width;
}
but width comes out to be zero ..
help is needed
waiting for your response
--
--
--
Thanking You,
Pankaj Kumar Singh,
2nd Year Undergraduate Student,
Department of Agricultural and Food Engineering,
Indian Institute of Technology,
Kharagpur
Mobile - (+91) 8001231685
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders