Flash MX Methods

   

Flash MX Methods

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 .

setVolume

Sets the percentage of the volume level.

start

Starts the playback of the attached sound.

stop

Stops the playback of the attached sound.


   
Top


Certified Macromedia Flash MX Designer Study Guide
Certified Macromedia Flash MX Designer Study Guide
ISBN: 0321126955
EAN: 2147483647
Year: 2001
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net