# \[Flash MX\]Need help with mp3 player

**URL:** https://forum.kirupa.com/t/flash-mx-need-help-with-mp3-player/102810
**Category:** Uncategorized
**Created:** [February 27, 2004, 6:53am UTC](https://forum.kirupa.com/t/flash-mx-need-help-with-mp3-player/102810 "2004-02-27T06:53:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gimmedat13](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gimmedat13](https://forum.kirupa.com/u/gimmedat13)
#### Post date: [February 27, 2004, 6:53am UTC](https://forum.kirupa.com/t/flash-mx-need-help-with-mp3-player/102810/1 "2004-02-27T06:53:11Z")

</div>

I am still just a beginner with actionscript but I am composing a mp3 player with actionscript…I have the overall code figured out but I am still having a few problems and I wanted someone who is more experinced to help me with the code…

The problem that I am having is:

- I can’t get the play button to play the songs…after they have already been stopped.(what i mean by this…is…that there is a total of 4 songs and I can’t get the play button to continue playing whichever song that was “just” stopped…)

HERE’s THE CODE:

//code for the play button  
//I don’t know what to put here to make it work  
on (release) {

}

//code for the stop button  
on (press) {  
stopAllSounds();  
}

//code for the next button  
on (release) {  
nextFrame();  
nextFrame = this.\_currentFrame;  
if (nextFrame == 5) {  
this.gotoAndPlay(1);  
myConditionText = “”;  
}  
}  
on (release) {  
stopAllSounds();  
}

//code for songs 1 through 4  
//the only thing that changes for the other songs is the location  
//and track name  
myMusic = new Sound();  
myMusic.loadSound(“music/bobbinheads.mp3”, true);  
currentTrack=“Bobbin’ Heads”;  
stopped=false;  
paused=false;  
stop();

so if there’s anyone out there that can help me…can you please

thanx in advance
