# Play/Pause MP3

**URL:** https://forum.kirupa.com/t/play-pause-mp3/255018
**Category:** flash
**Created:** [March 18, 2008, 10:32am UTC](https://forum.kirupa.com/t/play-pause-mp3/255018 "2008-03-18T10:32:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dsapseid](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@dsapseid](https://forum.kirupa.com/u/dsapseid)
#### Post date: [March 18, 2008, 10:32am UTC](https://forum.kirupa.com/t/play-pause-mp3/255018/1 "2008-03-18T10:32:14Z")

</div>

Hi

I am creating a flash file that when it is opened as swf it starts playing an mp3 which is stored in the same folder on the cd. I can get it to play fine using the below code. I am trying to add a button to pause it or even mute it but i cant get it to work. Can some one point me in the right direction.

Thanks

Dan

```auto
 
var req:URLRequest = new URLRequest("abc.mp3");
var trans:SoundTransform = new SoundTransform(-50, -50);
var s:Sound = new Sound(req);
s.play(1,1);

```
