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.

Example<br />

The following example uses the _framesloaded property to start a SWF file when all the<br />

frames are loaded. If all the frames aren't loaded, the _xscale property of the loader movie<br />

clip instance is increased proportionally to create a progress bar.<br />

Enter the following ActionScript in Frame 1 of the Timeline:<br />

var pctLoaded:Number = Math.round(this.getBytesLoaded()/<br />

this.getBytesTotal()*100);<br />

bar_mc._xscale = pctLoaded;<br />

Add the following code to Frame 2:<br />

if (this._framesloaded

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

Saved successfully!

Ooh no, something went wrong!