Flash CS3 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.
Note: MovieClipLoader support for GIF and PNG file formats was new to Flash 8. If you import a project from an earlier version of the tool, you need to update the Publish settings to target Flash 8, or later, otherwise only SWF and JPEG file formats will work.
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.
Note: Some browsers' caching of files locally may interfere with MovieClipLoader events. While developing SWF files, clear your browser's cache before testing MovieClipLoader events.
Availability: ActionScript 1.0; Flash Player 7
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
Specifies whether Flash Player should attempt to download a cross-domain policy file from the loaded object's server before beginning to load the object itself. |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
|
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 |
|
|
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
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001993.html