MP3 Player in Flash

Hi I am new to flash and this forum. I created a mp3 player with equalizer but have some problem with it. I created the player with music will not start until the play button been click on. So here is my problems.

First, I need to have the equalizer bars (fake: bars moving up and down) not showing (disappeared) before the play button being click on and stop when the music is on pause. Now it is just an animation that moving up and down even when music not playing.

Second, I made the player transparent background everything looks good in FireFox but in IE 7 there is a black box around the play/pause button. I use text in flash to create this play/pause button. Is there a way to remove the black box?

Thrid, the music plays when testing the player on my computer and when publish it directly as html but there was no music when I insert it as a flash in my website. (website has not been published yet, it is still in my hard drive) How can I make the music play in the website?

Here is the codes for your reference:

Flash code:

[FONT=Courier New]//setup sound object[/FONT]
[FONT=Courier New]var s:Sound=new Sound();[/FONT]
[FONT=Courier New]s.onSoundComplete=playSong;[/FONT]
[FONT=Courier New]s.setVolume(75);[/FONT]
 
[FONT=Courier New]//Array of songs[/FONT]
[FONT=Courier New]var sa:Array=new Array();[/FONT]
 
[FONT=Courier New]// Currently playing song[/FONT]
[FONT=Courier New]var cps:Number=-1;[/FONT]
 
[FONT=Courier New]//Position of Music[/FONT]
[FONT=Courier New]var pos:Number;[/FONT]
 
[FONT=Courier New]//Load the songs XML[/FONT]
[FONT=Courier New]var xml:XML=new XML();[/FONT]
[FONT=Courier New]xml.ignoreWhite=true;[/FONT]
[FONT=Courier New]xml.onLoad=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  var nodes:Array=this.firstChild.childNodes;[/FONT]
[FONT=Courier New]  for(var i=0;i<nodes.length;i++)[/FONT]
[FONT=Courier New]  {[/FONT]
[FONT=Courier New]     sa.push(nodes*.attributes.url);[/FONT]
[FONT=Courier New]  }[/FONT]
[FONT=Courier New]  playSong();[/FONT]
[FONT=Courier New]  pauseIt();[/FONT]
[FONT=Courier New]  playPause.gotoAndStop("play");[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]xml.load("songs.xml");[/FONT]
 
[FONT=Courier New]//Play the MP3 File[/FONT]
[FONT=Courier New]function playSong():Void[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  s=new Sound();[/FONT]
[FONT=Courier New]  if(cps==sa.length-1)[/FONT]
[FONT=Courier New]  {[/FONT]
[FONT=Courier New]     cps=0;[/FONT]
[FONT=Courier New]     s.loadSound(sa[cps], true);[/FONT]
[FONT=Courier New]  }[/FONT]
[FONT=Courier New]  else[/FONT]
[FONT=Courier New]  {[/FONT]
[FONT=Courier New]     s.loadSound(sa[++cps], true);[/FONT]
[FONT=Courier New]  }[/FONT]
[FONT=Courier New]  playPause.gotoAndStop("pause");[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]//Pauses the music[/FONT]
[FONT=Courier New]function pauseIt():Void[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  pos=s.position;[/FONT]
[FONT=Courier New]  s.stop();[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]//Pauses the music[/FONT]
[FONT=Courier New]function unPauseIt():Void[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  s.start(pos/1000);[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]//Music Controls[/FONT]
 
[FONT=Courier New]//Play/Pause Toggle[/FONT]
[FONT=Courier New]playPause.onRollOver=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  if(this._currentframe==1)this.gotoAndStop("pauseOver");[/FONT]
[FONT=Courier New]   else this.gotoAndStop("playOver");[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]playPause.onRollOut=playPause.onReleaseOutside=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  if(this._currentframe==10)this.gotoAndStop("pause");[/FONT]
[FONT=Courier New]   else this.gotoAndStop("play");[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]playPause.onRelease=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  if(this._currentframe==10)[/FONT]
[FONT=Courier New]  {[/FONT]
[FONT=Courier New]     this.gotoAndStop("playOver");[/FONT]
[FONT=Courier New]     this._parent.pauseIt();[/FONT]
[FONT=Courier New]  }[/FONT]
[FONT=Courier New]  else[/FONT]
[FONT=Courier New]  {[/FONT]
[FONT=Courier New]     this.gotoAndStop("pauseOver");[/FONT]
[FONT=Courier New]     this._parent.unPauseIt();[/FONT]
[FONT=Courier New]  }[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]//next button[/FONT]
[FONT=Courier New]next.onRollOver=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  this.gotoAndStop("nextOver");[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]next.onRollOut=next.onReleaseOutside=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  this.gotoAndStop("next");[/FONT]
[FONT=Courier New]}[/FONT]
 
[FONT=Courier New]next.onRelease=function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New]  this._parent.playSong();[/FONT]
[FONT=Courier New]}[/FONT]

html codes:

[FONT=Courier New]<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>[/FONT]

and

[FONT=Courier New]<script type="text/javascript">[/FONT]
[FONT=Courier New]AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0','width','80','height','28','src','../music/mp3player','quality','high','wmode','transparent','name','mp3player','align','right','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../music/mp3player' ); //end AC code[/FONT]
[FONT=Courier New]</script><noscript><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" [/FONT]
[FONT=Courier New]codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"[/FONT]
[FONT=Courier New]WIDTH="80" HEIGHT="28"><param name="wmode" value="transparent">[/FONT]
[FONT=Courier New]<param name="movie" value="mp3player.swf" /><param name="quality" value="high" />[/FONT]
[FONT=Courier New]<EMBED src="../music/mp3player.swf" quality="high" WIDTH="80" HEIGHT="28" wmode="transparent"[/FONT]
[FONT=Courier New]NAME="mp3player" ALIGN="right" TYPE="application/x-shockwave-flash"[/FONT]
[FONT=Courier New]PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">[/FONT]
[FONT=Courier New]</EMBED>[/FONT]
[FONT=Courier New]</OBJECT></noscript>[/FONT]

Any help will be appreciated.

Thanks,
Esther