Is this a bug or does the Flash IDE ignore source volume and brickwall it by default? Because I have a very quiet sound, but when imported, Flash shows the waveform wall to wall in the Library and plays it at max volume.
Then when I try to set the volume, first of all-- why isn’t this as simple as play(vol, loopcount, pan); and not this (which had no effect)
import flash.media.SoundTransform;
import flash.media.SoundChannel;
btn_Staging.addEventListener(MouseEvent.MOUSE_UP, goBtnStaging);
btn_Staging.buttonMode = true;
function goBtnStaging(event:MouseEvent):void
{
btn_Staging.removeEventListener(MouseEvent.MOUSE_UP, goBtnStaging);
mc_Staging.visible = true;
mc_Staging.gotoAndPlay("Start");
trace("btn_Staging Clicked");
playSounds();
}
function playSounds():void
{
// Load the Sounds
var sfxHit:Sound = new SFXUITransition1();
var sfxWarp:Sound = new SFXUILowWarp();
//Setup the Channel
var UISFXChannel:SoundChannel = new SoundChannel();
var UISFXVol:SoundTransform = new SoundTransform();
UISFXVol.volume = 0.2;
UISFXChannel.soundTransform = UISFXVol;
// Play the Sounds
UISFXChannel = sfxHit.play();
UISFXChannel = sfxWarp.play();
}
Any ideas?