Sound class 625
Property summary for the Sound class
Event handler summary for the Sound class
Constructor for the Sound class
Availability
Flash Player 5.
Usage
new Sound([target])
Parameters
target
The movie clip instance on which the Sound object operates. This parameter
is optional.
Returns
Nothing.
Description
Constructor; creates a new Sound object for a specified movie clip. If you do not specify a target
instance, the Sound object controls all of the sounds in the movie.
Sound.setTransform() Sets the amount of each channel, left and right, to be played in
each speaker.
Sound.setVolume() Sets the volume level for a sound.
Sound.start() Starts playing a sound from the beginning or, optionally, from an offset
point set in the parameter.
Sound.stop() Stops the specified sound or all sounds currently playing.
Property Description
Sound.duration Length of a sound, in milliseconds.
Sound.ID3 Provides access to the metadata that is part of an MP3 file.
Sound.position Number of milliseconds a sound has been playing.
Event handler Description
Sound.onID3 Invoked each time new ID3 data is available.
Sound.onLoad Invoked when a sound loads.
Sound.onSoundComplete Invoked when a sound stops playing.
Method Description