Reputation: 1
I'm working on an animation that requires "Next" buttons at the end of each scene. The movie resumes after the button is pressed. During the pause, I'd like the background music to pause as well. I've tried several solutions but none seemed to work. I am using Flash Professional CS 5.5
Upvotes: 0
Views: 364
Reputation: 116
Assume you are using "timeline" instead pure AS3. At the start of whole project(MySound is your specified sound):
var position:Number = 0;
var mySound:Sound = new MySound();
var sc:SoundChannel;
When you start to play every scene(or press on resume button):
sc = mySound.play(position);
End of scene:
position = sc.position;
sc.stop();
Upvotes: 0