471,311 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,311 software developers and data experts.

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

// 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;
  3. if( isSoundOn == true ){
  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. 
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 4885

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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.