473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 5805

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

Similar topics

6
by: Davin Boling | last post by:
I'm a rather new programmer - been messing around with Python for about half a year or so. I play a few online games and run a Teamspeak server. Recently I've found myself wanting to make a "sound...
2
by: John S. Ford, MD | last post by:
I'm familiar with the beep function but is there any function that enables you to determine the pitch and duration of a tone produced by the computer's speaker? John
5
by: iwdu15 | last post by:
hey, im wodering if anyone knows how i can play a soundin my VB.net windows app when a Form1_Click event is triggered? thanks
5
by: johnb41 | last post by:
Does anyone know how can i create a sound in vb.net that will be a specific frequency? I can't find anything online that helps. Thanks very much for your help! John
2
by: Jav | last post by:
ASP.Net 2.0 - using ObjectDataSources (Csla) I sometimes have multiple Views (or Wizards) on a Page. Some of these may have UserControls with Addresses or Phones in GridViews belonging to...
1
by: hamachi | last post by:
I want to open a specific form when a table record is 'loaded'. I have a large table that contains different client records. Thank you for your assistance.
4
mrnn
by: mrnn | last post by:
Hello, just one last issue i'd like to figure out for my game...i'm tryin to figure out how to play sound effects in the game. i know how to get background music but for sounds i'd like it somethin...
4
by: themadme | last post by:
Is it possible to be able to produce real sound time effects, for example ( bullets hitting off different materials ). Has it already been done?
2
by: bharathreddy | last post by:
This is insight I would like to share how to restrict application from doing some tasks on specific time in specific timezone. Like if we want to restrict our application to work only from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.