Each Flash object or class has its own list of methods that are associated with it. Table 14.1 outlines what methods can be called within the Sound object.
For a list of Flash MX objects, see Chapter 13, "Objects."
Table 14.1. Sound Object
METHOD
DESCRIPTION
new Sound
Creates a new Sound object.
attachSound
Attaches a sound file from the Library to the Sound object.
getBytesLoaded
Returns the number of bytes or data loaded for the Sound object.
getBytesTotal
Returns the total number of bytes or data loaded for the Sound object.
getPan
Returns the pan level assigned.
getTransform
Returns the sound transformation information assigned.
getVolume
Returns the volume level assigned.
loadSound
Loads an MP3 file.
setPan
Sets the left-to-right balance of sound.
setTransform
Sets how the left and right sounds are distributed through the left and right speakers .