Hi sumeet,

You can put the check through onLoad Handler of movie clip.

mc.onLoad = doOnLoad;

function doOnLoad() {
      clearInterval (id)
}

Regards,
Gaurav Kaushal.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sumeet
Kumar
Sent: Thursday, December 22, 2005 3:53 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Movie Clip Loaded or not

Hi All

I m using loadMovie Command to load a image in an empty Movieclip. but
how to check whether the image is loaded or not.

i.e
mc.loadMovie ("image.jpg")
id = setInterval(fnCheckUploading,1)

                fnCheckUploading =function () {
                       if (mc._width>2){
                      clearInterval (id)
                      }
                }


Now in my case the width of the image can be even 1 pixel.


So any one please guide me how to put a check.


Regards
Sumeet Kumar

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to