Newbie, load ext. mp3 player problem

Hi,

I’ve been lurking around here for a while, but I finally got around to register. I struck quite the problem… Hope you can help me out.

I made a mp3 player that plays external mp3’s with the help of xml.
It works brilliant. That is… when I load it externally from my main.swf the title, the buttons and the volume stops functioning…
I also tried to copy all the files and AS from the mp3player.fla and inserting it into a movieclip on my main.swf, but the same thing happened.

The mp3 player in question is this:

Mp3 Player

There is nothing fancy in my main movie, not even any AS…

Hope you can help me,

Marius

Update
Even though I’m quite new at this I’m guessing it’s something in the AS of the mp3 player that needs to be changed when it’s being loaded externally.
Something with the path…?

This is the code:

stop();
playlist = new XML();
playlist.ignoreWhite=true;
playlist.onLoad = function (success) {
        if(success) {
		
                _global.songname = [];
				_global.songband = [];
                _global.songfile = [];
                for (var i=0; i<playlist.firstChild.childNodes.length; i++) {
                        
                        _global.songname* = playlist.firstChild.childNodes*.attributes.name;
                        _global.songband* = playlist.firstChild.childNodes*.attributes.band;
                        _global.songfile* = playlist.firstChild.childNodes*.attributes.file;
                        //trace(songname*+"  "+songfile*+" "+songband*);
                }
		}
                _root.createEmptyMovieClip("sound_mc",1);
                _global.song_nr = random(songfile.length); 
                _root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]); 
}


function timer(sound_obj) {
		time=sound_obj.position/1000;
		min=Math.floor(time/60);
		min=(min<10)?"0"+min:min;
		sec=Math.floor(time%60);
		sec=(sec<10)?"0"+sec:sec;
        timeDisplay_txt.text=min+":"+sec;
}
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.onEnterFrame = function () {
                if(this.sound_obj.position>0) {
                        delete this.onEnterFrame; 
                        this._parent.display_txt.text=name+" / "+band; 
						timeInterval = setInterval(timer, 1000, this.sound_obj);
                } else {
                        this._parent.display_txt.text="Loading..." 
                }
        }
        this.sound_obj.onSoundComplete = function () {
				clearInterval(timeInterval);
				this._parent.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]);
        }
		this._parent.volume1.dragger.onPress = function() {
        startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
        this.onEnterFrame = function() {
                var p = (this._x/this._parent.volBG._width)*100;
               this._parent._parent.sound_mc.sound_obj.setVolume(p);
        };
}
this._parent.volume1.dragger.onRelease = function() {
        delete this.onEnterFrame;
        stopDrag();
};
this._parent.volume1.dragger.onReleaseOutside = function() {
        stopDrag();
};
		
}

btn_play.onRelease = function () {
        clearInterval(timeInterval);
        this._parent.timeDisplay_txt.text="00:00";
        this._parent.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]);
}
btn_stop.onRelease = function() {
	    clearInterval(timeInterval);
        this._parent.timeDisplay_txt.text="00:00";
        this._parent.sound_mc.sound_obj.stop(); 
}
btn_fw.onRelease = function () {
	    clearInterval(timeInterval);
        this._parent.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]);
}
btn_rev.onRelease = function () {
	    clearInterval(timeInterval);
        this._parent.timeDisplay_txt.text="00:00";
        (song_nr==0)? _global.song_nr=songfile.length-1 : _global.song_nr--;
        _root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr])
}

playlist.load("playlist.xml");