timeline sync AND volume control?
Hi :)
I apologise if this is a very ignorant question... but...
Is there a way to both have a voice over sound link to the timeline’s graphics
(easily achieved by placing the sound in the timeline and choosing the 'stream' option?)
But also be able to control its volume parameters?
(which so far i only managed to do using sound symbols)
to ask it properly-
1. Is there a way to control a sound's volume when placing it in the timeline?
Or
2. is there a way to sync sound to timeline when using it as a sounds class- mysound:sound= new sound ();
It weirdly seems like i have to choose one functionality or the other...
am i right or simply unaware of an easy solution?
help...
control timeline sound volume
To use that to mute your sound, put that code inside of a function called by an mouse-click eventlistener attatched to your button....
muteVol_btn.addEventListener(MouseEvent.CLICK, muteVolume);
function muteVolume(evt:MouseEvent):void{
var myTransform:SoundTransform=SoundMixer.soundTransfo rm;
myTransform.volume=0; //mutes sound
SoundMixer.soundTransform=myTransform;
}
you could make other buttons for other sound control...
halfVol_btn.addEventListner(MouseEvent.CLICK, halfVolume);
function halfVolume(evt:MouseEvent):void{
var myTransform:SoundTransform=SoundMixer.soundTransfo rm;
myTransform.volume=.5;
/* volume is half as loud, change this number anything from 0 to 1 for mute to full sound */
SoundMixer.soundTransform=myTransform;
}