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.

Event summary<br />

Event Description<br />

onID3 = function()<br />

{}<br />

Constructor summary<br />

Method summary<br />

564 ActionScript classes<br />

Invoked each time new ID3 data is available for an MP3 file that you<br />

load using Sound.attachSound() or Sound.loadSound().<br />

onLoad =<br />

Invoked automatically when a sound loads.<br />

function(success:Bo<br />

olean) {}<br />

onSoundComplete =<br />

function() {}<br />

Signature Description<br />

Invoked automatically when a sound finishes playing.<br />

Sound([target:Objec Creates a new Sound object for a specified movie clip.<br />

t])<br />

Modifiers Signature Description<br />

attachSound(id:Strin<br />

g) : Void<br />

getBytesLoaded() :<br />

Number<br />

getBytesTotal() :<br />

Number<br />

Attaches the sound specified in the id parameter<br />

to the specified Sound object.<br />

Returns the number of bytes loaded (streamed) for<br />

the specified Sound object.<br />

Returns the size, in bytes, of the specified Sound<br />

object.<br />

getPan() : Number Returns the pan level set in the last setPan() call<br />

as an integer from -100 (left) to +100 (right).<br />

getTransform() :<br />

Object<br />

Returns the sound transform information for the<br />

specified Sound object set with the last<br />

Sound.setTransform() call.<br />

getVolume() : Number Returns the sound volume level as an integer from<br />

0 to 100, where 0 is off <strong>and</strong> 100 is full volume.<br />

loadSound(url:String Loads an MP3 file into a Sound object.<br />

,<br />

isStreaming:Boolean)<br />

: Void<br />

setPan(value:Number)<br />

: Void<br />

Determines how the sound is played in the left <strong>and</strong><br />

right channels (speakers).

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

Saved successfully!

Ooh no, something went wrong!