# A little mp3player assistance please..(mx2004)

**URL:** <https://forum.kirupa.com/t/a-little-mp3player-assistance-please-mx2004/106805>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 11:24pm UTC](https://forum.kirupa.com/t/a-little-mp3player-assistance-please-mx2004/106805 "2004-04-08T23:24:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynastyjp](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dynastyjp](https://forum.kirupa.com/u/dynastyjp)\
**Post date:** [April 8, 2004, 11:24pm UTC](https://forum.kirupa.com/t/a-little-mp3player-assistance-please-mx2004/106805/1 "2004-04-08T23:24:10Z")

</div>

I recently made an mp3 player that reads off of a text file so that users may cycle through a selection of songs. I’m trying to extend it a bit by setting up the mp3 player to display the songs names an their duration (5:45) I’m pretty confident this is possible and I’ve tried a number of things and read a number of threads and tutorials but I’m still stumped. Anyways, this is how the code reads…

// playlist  
var tracks = ["_.mp3", “runnin.mp3”, “getlow.mp3”, “pimp.mp3”, “ghost.mp3”], i = 0;  
// define sound object  
track = new Sound();  
// load first track  
track.loadSound(tracks, true);  
// onSoundComplete play next track  
track.onSoundComplete = function() {  
i = (i+1)%tracks.length;  
this.loadSound(tracks, true);  
};  
// stop track  
stopBTN.onRelease = function() {  
track.stop();  
};  
// play track  
playBTN.onRelease = function() {  
track.loadSound(tracks, true);  
};  
// play next track  
nextBTN.onRelease = function() {  
i = Math.min(i+1, tracks.length-1);  
track.loadSound(tracks_, true);  
};  
// play previous track  
prevBTN.onRelease = function() {  
i = Math.max(0, i-1);  
track.loadSound(tracks\*, true);  
};  
//-----------------------------------------

Just curious as what I can add to this AS so that it may function in the way that I want! Thanks in advance…oh and how and the hell do you get the flashtrak eq’s to function?!?
