MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 680

Actionscript language reference
Table of Contents

Advertisement

Sound class
Availability
Flash Player 5.
Description
The Sound class lets you control sound in a movie. You can add sounds to a movie clip from the
library while the movie is playing and control those sounds. If you do not specify a target when
you create a new Sound object, you can use the methods to control sound for the whole movie.
You must use the constructor
the Sound class.
Method summary for the Sound class
Method
Sound.attachSound()
Sound.getBytesLoaded()
Sound.getBytesTotal()
Sound.getPan()
Sound.getTransform()
Sound.getVolume()
Sound.loadSound()
Sound.setPan()
Sound.setTransform()
Sound.setVolume()
Sound.start()
Sound.stop()
Property summary for the Sound class
Property
Sound.duration
Sound.id3
Sound.position
680
Chapter 7: ActionScript for Flash
to create a Sound object before calling the methods of
new Sound
Description
Attaches the sound specified in the parameter.
Returns the number of bytes loaded for the specified sound.
Returns the size of the sound in bytes.
Returns the value of the previous
Returns the value of the previous
Returns the value of the previous
Loads an MP3 file into Flash Player.
Sets the left/right balance of the sound.
Sets the amount of each channel, left and right, to be played in
each speaker.
Sets the volume level for a sound.
Starts playing a sound from the beginning or, optionally, from an offset
point set in the parameter.
Stops the specified sound or all sounds currently playing.
Description
Read-only; the length of a sound, in milliseconds.
Read-only; provides access to the metadata that is part of an MP3 file.
Read-only; the number of milliseconds a sound has been playing.
ActionScript for Flash
call.
setPan()
call.
setTransform()
call.
setVolume()
CHAPTER 7

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents