# Need help with mp3 player

**URL:** <https://forum.kirupa.com/t/need-help-with-mp3-player/164177>\
**Category:** Uncategorized\
**Created:** [September 29, 2005, 2:40am UTC](https://forum.kirupa.com/t/need-help-with-mp3-player/164177 "2005-09-29T02:40:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maciejwantusiak](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@maciejwantusiak](https://forum.kirupa.com/u/maciejwantusiak)\
**Post date:** [September 29, 2005, 2:40am UTC](https://forum.kirupa.com/t/need-help-with-mp3-player/164177/1 "2005-09-29T02:40:54Z")

</div>

I have build this mp3 player for my friend and it works just fine when i test it on the computer, but when i upload it on the test server and try it - the songs are not playing.

here is the action script responsible:

```auto
 
MovieClip.prototype.songStarter = function(file, name, band) {
if (this.sound_obj) {
this.sound_obj.stop();
delete this.sound_obj;
}
this.sound_obj = new Sound(this);
this.sound_obj.loadSound(file, true);
this.sound_obj.stop();
_root.soundLoading = true;
this.onEnterFrame = function() {
if(_root.soundLoading == true) {
var tot = this.sound_obj.getBytesTotal();
var lod = this.sound_obj.getBytesLoaded();
if(lod != undefined && lod > 100){
	var perc = int((lod*100)/tot);
	display_txt.text = "loading..." + perc+"%";
	if(lod == tot) {
	 _root.soundLoading = false;
	 delete this.onEnterFrame;
	 display_txt.text = name+" / "+band;
	 timeInterval = setInterval(timer, 1000, this.sound_obj);
	 this.sound_obj.start();
	}
}
}
};
 
this.sound_obj.onSoundComplete = function() {
clearInterval(timeInterval);
timeDisplay_txt.text = "00:00";
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};

```

any help will be much appreciated  
thanks

P.S. how could I prevent the songs that already have played from loading again in the future and make them play from the memory?
