Log in

View Full Version : Stopping and Starting sound in different keyframes



the penguin
04-08-2009, 05:17 PM
Hi,

I'm building a movie in flash where i have six buttons (always visible) that click to a different keyframe using the gotoAndStop method with frame names.

Basically it's 3 buttons on the left, 3 buttons on the right, with a big rectangle in the middle. When you click on one of the buttons, the big rectangle in the center changes depending what frame i told it to stop at.

My questions is: How can i have sound playing on each individual frame so when i click a different button the sound will stop and then play the sound that associated with the button that was clicked on. I currently have tried it where i placed sound into two different movieclips, and placed the movieclips in the associated keyframes, but when i click a different button, both sounds are still playing even though i'm on a different frame.

All help is much appreciated.

Thanks!