In addition to this
System.onStatus. If
to respond to it, Flash processes a function assigned to
The following events notify you when certain SharedObject activities occur.
Code property
SharedObject.Flush.Failed
SharedObject.Flush.Success
See also
SharedObject.getLocal()
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()
624
Chapter 12: ActionScript Dictionary
handler, Flash also provides a "super" function called
onStatus
is invoked for a particular object and there is no function assigned
onStatus
Level property Meaning
Error
Status
,
System.onStatus
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.
System.onStatus
A
SharedObject.flush()
"pending" has failed (the user did not allot
additional disk space for the shared object when
Flash Player displayed the Local Storage Settings
dialog box).
A
SharedObject.flush()
"pending" has been successfully completed
(the user allotted additional disk space for the
shared object).
to create a Sound object before calling the methods of
setPan()
setTransform()
setVolume()
if it exists.
command that returned
command that returned
call.
call.
call.
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers