EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Page 597

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Sound 597
Method summary
Modifiers Signature Description
attachSound(id:String) : Void Attaches the sound specified in the
id parameter to the specified
Sound object.
getBytesLoaded() : Number Returns the number of bytes loaded
(streamed) for the specified Sound
object.
getBytesTotal() : Number Returns the size, in bytes, of the
specified Sound object.
getPan() : Number Returns the pan level set in the last
setPan() call as an integer from -
100 (left) to +100 (right).
getTransform() : Object Returns the sound transform
information for the specified Sound
object set with the last
Sound.setTransform() call.
getVolume() : Number Returns the sound volume level as
an integer from 0 to 100, where 0 is
off and 100 is full volume.
loadSound(url:String,
isStreaming:Boolean) : Void
Loads an MP3 file into a Sound
object.
setPan(value:Number) : Void Determines how the sound is played
in the left and right channels
(speakers).
setTransform(transformObject:Object)
: Void
Sets the sound transform (or
balance) information, for a Sound
object.
setVolume(value:Number) : Void Sets the volume for the Sound
object.
start([secondOffset:Number],
[loops:Number]) : Void
Starts playing the last attached
sound from the beginning if no
parameter is specified, or starting at
the point in the sound specified by
the secondOffset parameter.
stop([linkageID:String]) : Void Stops all sounds currently playing if
no parameter is specified, or just the
sound specified in the idName
parameter.

Table of Contents

Related product manuals