Use loadClip().
Using this method instead of loadMovie() or MovieClip.loadMovie() has a number of advantages.

The following handlers are implemented by the use on a listener object:

MovieClipLoader.onLoadStart handler is invoked when loading begins.
MovieClipLoader.onLoadError handler is invoked if the clip cannot be loaded.
MovieClipLoader.onLoadProgress handler is invoked as the loading process progresses. MovieClipLoader.onLoadInit handler is invoked after the actions in the first frame of the clip have executed, so you can begin manipulating the loaded clip. MovieClipLoader.onLoadComplete handler is invoked when a file has completed downloading.




----- Original Message ----- From: "Sumeet Kumar" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, December 22, 2005 10:23 AM
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