03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mySoundTransformObjectHalf.ll = 50;<br />

mySoundTransformObjectHalf.lr = 0;<br />

mySoundTransformObjectHalf.rr = 100;<br />

mySoundTransformObjectHalf.rl = 50;<br />

my_sound.setTransform(mySoundTransformObjectHalf);<br />

var mySoundTransformObjectHalf:Object = {ll:50, lr:0, rr:100, rl:50};<br />

See also<br />

Object, getTransform (Sound.getTransform method)<br />

setVolume (Sound.setVolume method)<br />

public setVolume(value:Number) : Void<br />

Sets the volume for the Sound object.<br />

Parameters<br />

value:Number - A number from 0 to 100 representing a volume level. 100 is full volume <strong>and</strong><br />

0 is no volume. The default setting is 100.<br />

Example<br />

For a sample usage of this method, see Sound.getVolume().<br />

See also<br />

setPan (Sound.setPan method), setTransform (Sound.setTransform method)<br />

Sound constructor<br />

public Sound([target:Object])<br />

Creates a new Sound object for a specified movie clip. If you do not specify a target instance,<br />

the Sound object controls all of the sounds in the movie.<br />

Parameters<br />

target:Object [optional] - The movie clip instance on which the Sound object operates.<br />

Example<br />

The following example creates a new Sound object called global_sound. The second line<br />

calls setVolume() <strong>and</strong> adjusts the volume on all sounds in the movie to 50%.<br />

var global_sound:Sound = new Sound();<br />

global_sound.setVolume(50);<br />

582 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!