This content has been marked as final. Show 8 replies
what's Suazo and what's play and pause?
you should be using your sound instance's start() and stop() methods.
I put the load sound actionscript in a movie clip and gave it an instance name of Suazo which is in scene 2. I later realized that I needed to direct it so I added "Scene 2", Suazo" but I'm pretty sure that's still completely wrong. I changed the "pause" to "stop" and play to start but it's still not operational.
Play and pause are just the names of the two buttons in the sound/timeline controller movie clip. Is there an easier way I can control the sound an timeline with one button?
mySound.start(); // to play your sound
mySound.stop(); // to stop your sound
if you're executing code from a timeline OTHER than the time where mySound was instantiated, prefix mySound() with the absolute or relative path to mySound.
Thanks for your help with this, I've got the voiceover to stop and start with the movie now but it doesn't resume playing from the same place, it just starts over. Is there anyway to control that?
yes. when you start() your sound you can use an offset parameter to start() at any point. you'll start at your sound's position property. (the position is in milliseconds and the offset parameter is in seconds, so divide the position by 1000.)
hope this helps
//variable to store song position
//put this function on your pause button press
pos = mySound.position;
//put this function on your unpause button press
Thanks for both of your help.