468,536 Members | 1,498 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,536 developers. It's quick & easy.

How can i set specific sound effects to a specific vol ?

14
// I have a variable set

var vol = 0.25;

this var changes on demand and works fine.

In my flash game I have some sound effects on movieclips that sound only when the movie clips are being played.

I would like to set all of my sound effects to the same volume in one as3 file.

Although I have my sounds playing in my timeline on as3, is there a way to get all of my sounds together on one as3 file to set them all to my specific volume.

I was thinking something like....

Expand|Select|Wrap|Line Numbers
  1. var isSoundOn = true;
  2.  
  3. if( isSoundOn == true ){
  4.  
  5.     // get all sounds that i would like to change volume on
  6.     // if in game play and any of the sound effects are ready - play all these sounds with my specific volume setting. 
  7.  
I am also using flashDevelop to write most of my as3 and i would like to change the volume here. Thanks

}
Dec 20 '13 #1
0 4782

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Davin Boling | last post: by
2 posts views Thread by John S. Ford, MD | last post: by
5 posts views Thread by iwdu15 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.