# Flash 8: stop mc at frame & control sound

**URL:** <https://forum.kirupa.com/t/flash-8-stop-mc-at-frame-control-sound/238663>\
**Category:** flash\
**Created:** [September 13, 2007, 6:49pm UTC](https://forum.kirupa.com/t/flash-8-stop-mc-at-frame-control-sound/238663 "2007-09-13T18:49:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanookj](https://avatars.discourse-cdn.com/v4/letter/n/b77776/32.png) [@nanookj](https://forum.kirupa.com/u/nanookj)\
**Post date:** [September 13, 2007, 6:49pm UTC](https://forum.kirupa.com/t/flash-8-stop-mc-at-frame-control-sound/238663/1 "2007-09-13T18:49:40Z")

</div>

Hello,

I’m new to actionscript/flash. I have on different layers: action, lilypad, frog\_mc, button, water mask and sound. What I’d like is if the button is released, for the frog\_mc (frog jumping off the lilypad) to play just once, and the water mask to move, and the sound to occur.

On the action layer I have:  
//stop the movie clip when page loads  
animated\_mc.stop();  
//when home button is pressed, play the movie clip  
home\_btn.onPress = function(){  
animated\_mc.play()}

The last frame of the frog layer: animated\_mc.stop();

The first frame of the sound layer, which is close towards the end of the frog layer:  
var water\_splash = new Sound();  
water\_splash.attachSound(“water”);  
if (home\_btn.onRelease == true){  
water.play}

The movie clip plays when the button is pressed, but the frog continuously jumps, and the sound, and water mask do not work.

I’ll be making several of these buttons to incorporate into a dreamweaver css file. Will I be making different swf files for each button?

Thanks for any help on this.  
Janis
