Hello all. Thanks for taking the time to help me. I have this mp3 player.
download link to it is http://schoolofflash.com/files/freeb...s3-jukebox.zip . It is the coolest MP3 player i have come across. However i had issues with the Auto Start. I wanted to delete the Auto start. With help from you guys, I eliminated the auto start, but now, My play button is playing only a Millisecond of the very 1st song only. It plays this Millisecond of the 1st song over and over nonstop. If i click on the forward button, then i click on the back button to come back to the 1st song, the play button works perfectly and so do all the other buttons. here is the code. Please help. Thanks.

Al

Code:
volume_mc.slider_mc.useHandCursor = true;

var musicReq:URLRequest;
var music:Sound = new Sound();
var sc:SoundChannel;
var currentSound:Sound = music;
var pos:Number;
var songPlaying:Boolean = false;

var xml:XML;
var songlist:XMLList;
var currentIndex:Number = 0;

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, whenLoaded);

function whenLoaded(e:Event):void
{
	xml = new XML(e.target.data);
	songlist = xml.song;
	musicReq = new URLRequest(songlist[0].url);
	music.load(musicReq);
	title_txt.text = songlist[0].title;
	artist_txt.text = songlist[0].artist;
}

loader.load(new URLRequest("jukebox.xml"));

next_btn.addEventListener(MouseEvent.CLICK,nextSong);
prev_btn.addEventListener(MouseEvent.CLICK,prevSong);
pause_btn.addEventListener(MouseEvent.CLICK,pauseSong);
play_btn.addEventListener(MouseEvent.CLICK,playSong);

stop_btn.addEventListener(MouseEvent.CLICK,stopSong);

function nextSong(e:Event):void
{
	if (currentIndex < (songlist.length() - 1))
	{
		currentIndex++;
	}
	else
	{
		currentIndex = 0;
	}
		
	var nextReq:URLRequest = new URLRequest(songlist[currentIndex].url);
	var nextTitle:Sound = new Sound(nextReq);
	sc.stop();
	title_txt.text = songlist[currentIndex].title;
	artist_txt.text = songlist[currentIndex].artist;
	sc = nextTitle.play();
	songPlaying = true;
	currentSound = nextTitle;
	sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
}

function prevSong(e:Event):void
{
	if (currentIndex > 0)
	{
		currentIndex--;
	}
	else
	{
		currentIndex = songlist.length() - 1;
	}
		
	var nextReq:URLRequest = new URLRequest(songlist[currentIndex].url);
	var prevTitle:Sound = new Sound(nextReq);
	sc.stop();
	title_txt.text = songlist[currentIndex].title;
	artist_txt.text = songlist[currentIndex].artist;
	sc = prevTitle.play();
	songPlaying = true;
	currentSound = prevTitle;
	sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
}

function pauseSong(e:Event):void
{
	pos = sc.position;
	sc.stop();
	songPlaying = false;
	play_btn.addEventListener(MouseEvent.CLICK,playSong);
}

function playSong(e:Event):void
{
	if(songPlaying == false)
	{
		sc = currentSound.play(pos);
		sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
		songPlaying = true;
		play_btn.removeEventListener(MouseEvent.CLICK,playSong);
	}
}

function stopSong(e:Event):void
{
	sc.stop();
	pos = 0;
	songPlaying = false;
	play_btn.addEventListener(MouseEvent.CLICK,playSong);
}

//----VOLUME----//
var dragging:Boolean = false;
var rect:Rectangle = new Rectangle(0,0,50,0);
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN,dragIt);
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_UP,dropIt);
stage.addEventListener(MouseEvent.MOUSE_UP,dropIt);

function dragIt(e:Event):void
{
	dragging = true;
	e.target.startDrag(false,rect);
	e.target.addEventListener(MouseEvent.MOUSE_MOVE, adjustVolume);
}

function dropIt(e:Event):void
{
	if (dragging)
	{
		var vol:Number = volume_mc.slider_mc.x * .02;
		var st:SoundTransform = new SoundTransform(vol,0);
		sc.soundTransform = st;
		volume_mc.slider_mc.stopDrag();
		volume_mc.slider_mc.removeEventListener(MouseEvent.MOUSE_MOVE, adjustVolume);
		dragging = false;
	}
}

function adjustVolume(e:Event):void
{
	var vol:Number = volume_mc.slider_mc.x * .02;
	var st:SoundTransform = new SoundTransform(vol,0);
	sc.soundTransform = st;
}

sof_mc.addEventListener(MouseEvent.CLICK, playAd);

function playAd(e:Event):void
{
	ad_mc.play();
}