03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The MovieClipLoader class lets you implement listener callbacks that provide status<br />

information while SWF, JPEG, GIF, <strong>and</strong> PNG files are being loaded (downloaded) into<br />

movie clips. To use MovieClipLoader features, use MovieClipLoader.loadClip() instead of<br />

loadMovie() or MovieClip.loadMovie() to load SWF files.<br />

After you issue the MovieClipLoader.loadClip() method, the following events take place<br />

in the order listed:<br />

■ When the first bytes of the downloaded file are written to disk, the<br />

MovieClipLoader.onLoadStart listener is invoked.<br />

■ If you implemented the MovieClipLoader.onLoadProgress listener, it is invoked<br />

during the loading process.<br />

Note: You can call MovieClipLoader.getProgress() at any time during the load<br />

process.<br />

■ When the entire downloaded file is written to disk, the<br />

MovieClipLoader.onLoadComplete listener is invoked.<br />

■ After the downloaded file's first frame actions are executed, the<br />

MovieClipLoader.onLoadInit listener is invoked.<br />

After MovieClipLoader.onLoadInit is invoked, you can set properties, use methods, <strong>and</strong><br />

otherwise interact with the loaded movie.<br />

If the file fails to load completely, the MovieClipLoader.onLoadError listener is invoked.<br />

Property summary<br />

Properties inherited from class Object<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

Event summary<br />

Event Description<br />

onLoadComplete =<br />

function(listenerOb<br />

ject, [target_mc])<br />

{}<br />

onLoadError =<br />

function(target_mc,<br />

errorCode) {}<br />

Invoked when a file loaded with MovieClipLoader.loadClip() is<br />

completely downloaded.<br />

Invoked when a file loaded with MovieClipLoader.loadClip() has failed<br />

to load.<br />

MovieClipLoader 481

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!