User Guide
528 ActionScript classes
See also
_x (MovieClip._x property), _xscale (MovieClip._xscale property), _y
(MovieClip._y property)
, _height (MovieClip._height property)
MovieClipLoader
Object
|
+-MovieClipLoader
public class MovieClipLoader
extends Object
The MovieClipLoader class lets you implement listener callbacks that provide status
information while SWF, JPEG, GIF, and PNG files are being loaded (downloaded) 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() method, the following events take place
in the order listed:
■ When the first bytes of the downloaded file are written to disk, the
MovieClipLoader.onLoadStart listener is invoked.
■ If you implemented the MovieClipLoader.onLoadProgress listener, it is invoked
during the loading process.
Note: You can call MovieClipLoader.getProgress() at any time during the load
process.
■ When the entire downloaded file is written to disk, the
MovieClipLoader.onLoadComplete listener is invoked.
■ After the downloaded file's first frame actions are executed, the
MovieClipLoader.onLoadInit listener is invoked.
After MovieClipLoader.onLoadInit is 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 Lite 2.0