User Guide

Sound 1095
Event summary
Constructor summary
Method summary
Event Description
onID3 =
function() {}
Invoked each time new ID3 data is available for an MP3 file that you load
using Sound.attachSound() or Sound.loadSound().
onLoad =
function(success
:Boolean) {}
Invoked automatically when a sound loads.
onSoundComplete
= function() {}
Invoked automatically when a sound finishes playing.
Signature Description
Sound([target:Object
])
Creates a new Sound object for a specified movie clip.
Modifiers Signature Description
attachSound(id:Strin
g) : Void
Attaches the sound specified in the id parameter to
the specified Sound object.
getBytesLoaded() :
Number
Returns the number of bytes loaded (streamed) for
the specified Sound object.
getBytesTotal() :
Number
Returns the size, in bytes, of the specified Sound
object.
getPan() : Number Returns the pan level set in the last setPan() call as
an integer from -100 (left) to +100 (right).
getTransform() :
Object
Returns the sound transform information for the
specified Sound object set with the last
Sound.setTransform() call.
getVolume() : Number Returns the sound volume level as an integer from 0
to 100, where 0 is off and 100 is full volume.
loadSound(url:String
,
isStreaming:Boolean)
: Void
Loads an MP3 file into a Sound object.
setPan(value:Number)
: Void
Determines how the sound is played in the left and
right channels (speakers).