EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Setvolume (Sound.setvolume Method); Sound Constructor

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 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 1115
var mySoundTransformObjectHalf:Object = {ll:50, lr:0, rr:100, rl:50};
Also see the example for Sound.getTransform().
See also
Object, getTransform (Sound.getTransform method)
setVolume (Sound.setVolume method)
public setVolume(value:Number) : Void
Sets the volume for the Sound object.
Availability: ActionScript 1.0; Flash Player 5
Parameters
value:Number - A number from 0 to 100 representing a volume level. 100 is full volume and
0 is no volume. The default setting is 100.
Example
See
Sound.getVolume() for a sample usage of this method.
See also
setPan (Sound.setPan method), setTransform (Sound.setTransform method)
Sound constructor
public Sound([target:Object])
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.
Availability: ActionScript 1.0; Flash Player 5
Parameters
target:Object [optional] - The movie clip instance on which the Sound object operates.
Example
The following example creates a new Sound object called
global_sound. The second line
calls
setVolume() and adjusts the volume on all sounds in the movie to 50%.
var global_sound:Sound = new Sound();
global_sound.setVolume(50);

Table of Contents

Related product manuals