PDA

View Full Version : starting and stopping sounds



Simpleaddict
01-21-2003, 09:59 PM
I need to make a music video for class, it has to have an intro scene, the video scene, and a closing scene.

The problem, the intro has to have a skip button that takes you to the next scene, this is fine, but the into HAS to have music, and the videio part HAS to have music, the music has to stop when you hit the skip button, and the video music has to start on the next scene, stopallsounds will not work because the video music stops, how can i get this to work i need to stop one sound, and start the next, the site is already done too,...

kiwicolin
01-21-2003, 11:52 PM
Add the sound in a seperate movie clip and choose a stop action calling that movie on the skip button.

Then have the next bit of sound on a new movie on the next scene. PS, its better to use loadmovie than using scenes.. but another story

cfire
01-22-2003, 11:47 PM
If the sites already done you can use a workaround(although I do agree it's better to use separate movies and use the Load Movie action if you're starting from scratch). Stop All Sounds will work, you just have to add it to the skip button before you add anything else. It'll stop the intro music and then when you add the Go To and Play to take you to the music video it'll start up from there. Actionscript works in kind of a what have you done for me lately fashion. The most recent action takes command over those before it so the Play action part of the Go To and Play action will override the Stop All Sounds action that it encountered first. :)

angel
02-18-2003, 03:28 PM
The coolest way is to make use of the Sound object supported in Flash 5 & MX, check this:

Sound Object in Macromedia (http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary654.html)