# Multiple Start Stop actions

**URL:** <https://forum.kirupa.com/t/multiple-start-stop-actions/286069>\
**Category:** Uncategorized\
**Created:** [April 9, 2009, 3:01pm UTC](https://forum.kirupa.com/t/multiple-start-stop-actions/286069 "2009-04-09T15:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigmic](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@bigmic](https://forum.kirupa.com/u/bigmic)\
**Post date:** [April 9, 2009, 3:01pm UTC](https://forum.kirupa.com/t/multiple-start-stop-actions/286069/1 "2009-04-09T15:01:08Z")

</div>

Hello,

hope this will make some sense.  
(Flash CS4 with Action Script3)

I want to have 2 lots of buttons, 2 play and 2 stop to control 2 different mp3 files within the same frame(page).

I use the code underneath that works just fine with one sound.  
But, how do I apply action script to control the play stop of the second Mp3 file.

I tried creating new buttons with action script in a new Movie clip but, I get a bunch of errors

Can anyone help?

Regards

M

* * *

var req:URLRequest = new URLRequest(“Pounding.mp3”);

var sound:Sound = new Sound();  
var controller:SoundChannel;

function soundLoaded(event:Event):void  
{  
controller = sound.play();  
controller.stop();  
play\_btn.addEventListener(MouseEvent.CLICK, playSound);  
stop\_btn.addEventListener(MouseEvent.CLICK, stopSound);  
}

function playSound(event:MouseEvent):void  
{  
controller = sound.play();  
}

function stopSound(event:MouseEvent):void  
{  
controller.stop();

}  
sound.addEventListener(Event.COMPLETE, soundLoaded);  
sound.load(req);

* * *
