Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > MovieClipLoader | |||
Object
|
+-MovieClipLoader
public class MovieClipLoader
extends Object
This class lets you implement listener callbacks that provide status information while SWF, JPEG, GIF, and PNG files are being loaded into movie clips. To use MovieClipLoader features, use MovieClipLoader.loadClip() instead of loadMovie() or MovieClip.loadMovie() to load SWF files.
After you issue the MovieClipLoader.loadClip() command, the following events take place in the order listed:
MovieClipLoader.onLoadStart listener is invoked.MovieClipLoader.onLoadProgress listener, it is invoked during the loading process.MovieClipLoader.getProgress() at any time during the load process.MovieClipLoader.onLoadComplete listener is invoked.MovieClipLoader.onLoadInit listener is invoked.When MovieClipLoader.onLoadInit has been invoked, you can set properties, use methods, and otherwise interact with the loaded movie.
If the file fails to load completely, the MovieClipLoader.onLoadError listener is invoked.
Availability: ActionScript 1.0; Flash Player 7
Properties inherited from class Object
|
Event |
Description |
|---|---|
|
onLoadComplete |
Invoked when a file that was loaded with |
|
onLoadError |
Invoked when a file loaded with |
|
onLoadInit |
Invoked when the actions on the first frame of the loaded clip have been executed. |
|
onLoadProgress |
Invoked every time the loading content is written to the hard disk during the loading process (that is, between |
|
onLoadStart |
Invoked when a call to |
|
Signature |
Description |
|---|---|
|
Creates a MovieClipLoader object that you can use to implement a number of listeners to respond to events while a SWF, JPEG, GIF, or PNG file is downloading. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
addListener |
Registers an object to receive notification when a |
|
|
getProgress |
Returns the number of bytes loaded and the total number of bytes of a file that is being loaded by using |
|
|
loadClip |
Loads a SWF, JPEG, progressive JPEG, unanimated GIF, or PNG file into a movie clip in Flash Player while the original movie is playing. |
|
|
removeListener |
Removes the listener that was used to receive notification when a |
|
|
unloadClip |
Removes a movie clip that was loaded by using |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002538.html
Comments
Spirale said on Nov 2, 2005 at 7:11 AM : __james__ said on Nov 2, 2005 at 12:49 PM : No screen name said on Jan 19, 2006 at 9:53 PM :