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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sounds between scenes

Status
Not open for further replies.

336699

Technical User
Dec 18, 2002
1
US
Hi,

I need help with sound in Flash. I need to get the correct codes for stopping and starting sounds between the different scenes. I have buttons that fast-forward and rewind and they are working to change the scenes. However, what can i do about stopping the current scene's sound and starting the next scene's sound?

Please help!
Thanks.

sherryc@myrealbox.com
 
try putting a
stopAllSounds();
before you change scenes and then start the sounds as the next scene loads.
(I'm assuming there is an event that triggers the scenec change that you can dump the stopallsounds thing with.)

so if you are using a button it will be scripted on the button.
on (release) {
stopAllSounds();
gotoAndPlay(scene,frame);
}

and then just do an onload play sound for the next scene.

I hope thats what you wanted.




Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
If you have your sound set to Streaming instead of Event, it will stop playing as soon as you leave its timeline (like to go to another scene). frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top