thanks to everyone
my problem has been solved :D
On Thu, Jul 1, 2010 at 7:14 PM, Glen Pike <[email protected]> wrote:
> Hi,
>
> Oops, missed one - try calling load() after you added the listener...
>
> Glen
>
> On 01/07/2010 14:32, Pankaj Singh wrote:
>
>> even after using INIT i m getting 0 width because event listener function
>> is
>> never called (trace statement is not working)
>>
>> for (var i:int=0; i< lettersCount; i++)
>> {
>> imageLoader[i].load (new URLRequest(
>> xmlLettersList[i].attribute("img")));
>> imageLoader[i].width = imageLoader[i].addEventListener(Event.INIT,
>> imgInitialised);
>> trace("width = " + imageLoader[i].width);
>> function imgInitialised (e:Event):Number
>> {
>> var bm:Bitmap = Bitmap(e.target.content);
>> trace("inside function image Loaded");
>> return bm.width;
>> }
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
--
--
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