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.

Stereo sounds divide the sound input evenly between the left <strong>and</strong> right speakers <strong>and</strong> have the<br />

following transform settings by default:<br />

ll = 100<br />

lr = 0<br />

rr = 100<br />

rl = 0<br />

Mono sounds play all sound input in the left speaker <strong>and</strong> have the following transform<br />

settings by default:<br />

ll = 100<br />

lr = 100<br />

rr = 0<br />

rl = 0<br />

Parameters<br />

transformObject:Object - An object created with the constructor for the generic Object<br />

class.<br />

Example<br />

The following example illustrates a setting that can be achieved by using setTransform(),<br />

but cannot be achieved by using setVolume() or setPan(), even if they are combined.<br />

The following code creates a new soundTransformObject object <strong>and</strong> sets its properties so<br />

that sound from both channels plays in the left channel only .<br />

var mySoundTransformObject:Object = new Object();<br />

mySoundTransformObject.ll = 100;<br />

mySoundTransformObject.lr = 100;<br />

mySoundTransformObject.rr = 0;<br />

mySoundTransformObject.rl = 0;<br />

To apply the soundTransformObject object to a Sound object, you then need to pass the<br />

object to the Sound object using setTransform() as follows:<br />

my_sound.setTransform(mySoundTransformObject);<br />

The following example plays a stereo sound as mono; the soundTransformObjectMono<br />

object has the following parameters:<br />

var mySoundTransformObjectMono:Object = new Object();<br />

mySoundTransformObjectMono.ll = 50;<br />

mySoundTransformObjectMono.lr = 50;<br />

mySoundTransformObjectMono.rr = 50;<br />

mySoundTransformObjectMono.rl = 50;<br />

my_sound.setTransform(mySoundTransformObjectMono);<br />

This example plays the left channel at half capacity <strong>and</strong> adds the rest of the left channel to the<br />

right channel; the soundTransformObjectHalf object has the following parameters:<br />

var mySoundTransformObjectHalf:Object = new Object();<br />

Sound 581

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

Saved successfully!

Ooh no, something went wrong!