Shoutcast Flash Player

Ok, So I spent all day and I made this cool looking player thing for my shoutcast internet radio.

Now I want to use flash to code it, and then I’m going to make it a program in VB6. I want to use flash to code it because I know more flash then VB6, but I want to have that program look to it. So here are some features it will have…

  • Play and Stop the radio stream (No pause because you can’t pause a live broadcast stream)
  • Volume Bar (The long bar on the left)
  • Get current song from XML on server (Password Protected) or Get current song from /7.html (Not Password Protected)
  • Equalizer (The small repeated bars on the left and right)

Thing I am going to need advice for…

  • Importing the different graphics into flash and what file format to save them as.
  • Using a font that isn’t installed on everyones computer.

I know some flash but I’m not the best at it. I’m going to search from tutorials now and see what I can figure out on my own.

function loadXML(loaded) {
if (loaded) {
_root.songtitle = this.firstChild.childNodes[8].firstChild.nodeValue;
songtitle_txt.text = _root.songtitle;
} else {
trace(“Stats file not loaded!”);
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;

I wrote that using the a tutorial that I found here. I changed around the file path for security reasons. When I try it in flash it dosent load the current song though. :m:

Here is my XML Document created by shoutcast…

<SERVERTITLE>Audio Monkey Radio (AMR)...Your Rock Alternative</SERVERTITLE>
<SONGTITLE>Norma Jean - The Human Face, Divine</SONGTITLE>
<TITLE>Norma Jean - The Human Face, Divine</TITLE>
<TITLE>Papa Roach - last resort</TITLE>
<TITLE>Nine Inch Nails - Closer</TITLE>
<TITLE>New Found Glory - This Disaster</TITLE>
New Found Glory - New Found Glory - Catalyst 12 I'd Kill To Fall Asleep
<TITLE>Incubus - Megalomaniac</TITLE>
<TITLE>Hoobastank - The Reason</TITLE>
<TITLE>Kernkraft 400 - Zombie Nation Remix</TITLE>
<TITLE>Behind Blue Eyes - Limp Bizkit</TITLE>
<TITLE>Letter Kills - Don't Believe</TITLE>