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

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
- A number from 0 to 100 representing a volume level. 100 is full volume and
value:Number
0 is no volume. The default setting is 100.
Example
See
for a sample usage of this method.
Sound.getVolume()
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
[optional] - The movie clip instance on which the Sound object operates.
target:Object
Example
The following example creates a new Sound object called
. The second line
global_sound
calls
and adjusts the volume on all sounds in the movie to 50%.
setVolume()
var global_sound:Sound = new Sound();
global_sound.setVolume(50);
Sound
1115

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF