Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound volume problems using flash mx

Status
Not open for further replies.

leearach2004

Technical User
Dec 8, 2005
86
GB
Hi there,
I am creating a flash based game and have use the following actionscript to use sound effects within the game
Code:
_root.shipsound = new Sound();
_root.shipsound.attachSound("boostexp");
_root.shipsound.setVolume(10);
_root.shipsound.start(0,0);
this code runs fine for bullet ecploision and all the game sounds btu for some reason if i use the same code for the background sound when the movie loads, at first it sound fine but then as soon as one of the sound effects are trigered the background sound voulume goes very quiet, all the effects stay fine just the backgorund sound voulume changes so u can hardly hear it.

I think it may be somthing to do with me setting all the sound effect to volume 10 and the background to 20, maybee when a sound effect runs its changing the background voulme to but this is just a guess.

hope somone can help me please

lee
 
Hi there
thanks very much oklnewbie
just the ticket great turtorial
thanks alot for the help
lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top