I found this in the depths of my computer with the script that made it work. It didn't work when I put it up so I worked on it a little and wrote this by just looking at the source and puting everything together. I'm not sure where I got the original source code, A google search pulled up nothing so If some of this work looks familiar, PM me and I will give you the proper credit were credit is due.
1) OK, First, You must be using winamp and you have to download the doSomthing plugin.
2) Now we must configure the plugin. Install it and open winamp right click and options -> preferences. The click General Purpose -> DoSomthing Plugin -> Configure Plug-in
3) Click the Actions dropdown list and pick "Submit a URL". In the URL box put
For URL result file put c:\info.txt (create this yourself also). Click the Add--> button. Uncheck Disable this plugin. ALSO remember to replace site/path with your site and the path to all the files. I suggest making a folder on the server that you will be putting the sig on called flashsig or somthing like that. Also CHMOD the folder to 666 along with any future files inside.

4) Next make two files and put them into the folder I talked about in the last step.
songinfo.php
info2.php
5) Make a new flash document and make four layers. Name the top one Actionscript, the second Dynamic and the third Static and the fourth Background. Then set the framerate to 1. It should look like this;

Now, see the image below;

In the above image it shows where you should put everything. Try to make it like that and insert this action script into each Actionscript frames.
Actionscript Frame 1
Actionscript Frame 2
Actionscript Frame 3
Actionscript Frame 4
6) Now that you have Actionscript out of the way, Move on to the static layer, put text that wont change (Like the [] around the song time or any other text like your username. See this image). Also make a background image on the Background layer.
7) Now onto the Dynamic Layer. Ok this is the layer that you will be putting the Song title, Artist, Ect. on.
First, Take out your font tool and look at this image;

Now, Type Album Name for your text then look down at the bottom of the screen. Set the drop down box to "Dynamic Text" then customize your font (you cna use ANY font on your computer, A cool thing about flash
). Then where it says Var type album. What Var does is get the album Variable from the php file and displays it. Now just do the same for everything else for now. The php script has these variables you can use (unless you add one yourself).
"album" "songtitle" "artist" "mins" "secs"
Album - Album name
Song title- The name of the song
Artist - The Artist
Mins - Minutes the song has been playing
Secs - The seconds the song has been playing
Make all the dynamic text you want and place it all where you want. Once your done export the file as a SWF file and upload it to a server. Now start winamp and play a song, What happens is the song info is saved to the file c:\info.txt you saved. That info is then sent to the php file where it is sorted out and saved as a file called info.txt on your server (thats why we had to CHMOD). That file is then read by the second php file and that info is then read by the actionscript from the flash. Flash then displays the data in your dynamic text spots.
If it doesn't work or you need a little bit of extra help, you can view my source file here
1) OK, First, You must be using winamp and you have to download the doSomthing plugin.
2) Now we must configure the plugin. Install it and open winamp right click and options -> preferences. The click General Purpose -> DoSomthing Plugin -> Configure Plug-in
3) Click the Actions dropdown list and pick "Submit a URL". In the URL box put
Code:
http://site.com/path/songinfo.php?song=%%URL_CURRENTSONG%%&length=%%URL_CURRENTSONGLENGTH%%&album=%%URL_CURRENTALBUM%%

4) Next make two files and put them into the folder I talked about in the last step.
songinfo.php
PHP Code:
<html>
<title>Song Info</title>
<body>
<?
// This file gets the info sent from the plugin and updates a file called info.txt on your server (be sure to cmod your
// folder and files to 666
$time = explode(":", $HTTP_GET_VARS[length]);
$time[0] = $time[0]*60;
$totaltime = $time[0] + $time[1];
$start = time();
$end = time() + ($time[0] + $time[1]);
$album = $HTTP_GET_VARS[album];
$HTTP_GET_VARS[song] = trim($HTTP_GET_VARS[song]);
$HTTP_GET_VARS[song] = str_replace("\'", "'", $HTTP_GET_VARS[song]);
// Opens the file and updates it with the new song info
$file = fopen("info.txt", "w");
fputs($file, "$HTTP_GET_VARS[song]\n");
fputs($file, "$HTTP_GET_VARS[length]\n");
fputs($file, "$start\n");
fputs($file, "$end\n");
fputs($file, "$totaltime\n");
fputs($file, "$HTTP_GET_VARS[album]\n");
fclose($file);
// done
echo "<b>$HTTP_GET_VARS[song]</b>";
echo " $HTTP_GET_VARS[length]";
echo " $HTTP_GET_VARS[album]";
?>
</BODY>
</HTML>
info2.php
PHP Code:
<?
$time = time();
$song_info = file("info.txt");
$diffsecs = $time - $song_info[2];
$minutes = $diffsecs/60;
$break = explode(".", $minutes);
$current_secs = $diffsecs%60;
$current_mins = $break[0];
$main_info = explode(" - ", $song_info[0]);
$main_info[0] = trim($main_info[0]);
$main_info[1] = trim($main_info[1]);
$song_info[4] = trim($song_info[4]);
$song_info[5] = trim($song_info[5]);
if($time <= $song_info[3])
{
echo "&songtitle=$main_info[1]";
echo "&artist=$main_info[0]";
echo "&mins=$current_mins";
echo "&secs=$current_secs";
echo "&playtime=$diffsecs";
echo "&totalength=$song_info[4]";
echo "&album=$song_info[5]";
echo "&EOF=true";
}
else
{
echo "&songtitle=$main_info[1]";
echo "&artist=$main_info[0]";
echo "&mins=0";
echo "&secs=0";
echo "&playtime=0";
echo "&totalength=0";
echo "&album=$song_info[5]";
echo "&EOF=false";
}
?>

Now, see the image below;

In the above image it shows where you should put everything. Try to make it like that and insert this action script into each Actionscript frames.
Actionscript Frame 1
Code:
loadVariablesNum("http://site/path/info2.php?r="+random(999), 0);
if(EOF == "true")
{
gotoAndPlay(3);
}
Code:
gotoAndPlay(1);
Code:
// Increment "secs" loaded from the php file
secs = Number(secs) + Number(1);
// Covert the "totalength" variable from the php file into a number format
totalength = Number(totalength);
// Increment "playtime" variable
playtime = Number(playtime) + Number(1);
// Format "secs" variable for numbers less than 10
if(Number(secs) < 10)
{
secs = "0" + Number(secs);
}
// Increment "mins" by 1 when "secs" hit 60
if(Number(secs) == Number(60))
{
mins = Number(mins) + Number(1);
secs = "00";
}
// Reload new song information when "playtime" matches "totalength"
if(Number(playtime) == Number(totalength))
{
gotoAndPlay(1);
}
Code:
if(Number(playtime) == Number(totalength))
{
gotoAndPlay(1);
}
else
{
gotoAndPlay(3);
}
7) Now onto the Dynamic Layer. Ok this is the layer that you will be putting the Song title, Artist, Ect. on.
First, Take out your font tool and look at this image;

Now, Type Album Name for your text then look down at the bottom of the screen. Set the drop down box to "Dynamic Text" then customize your font (you cna use ANY font on your computer, A cool thing about flash
). Then where it says Var type album. What Var does is get the album Variable from the php file and displays it. Now just do the same for everything else for now. The php script has these variables you can use (unless you add one yourself)."album" "songtitle" "artist" "mins" "secs"
Album - Album name
Song title- The name of the song
Artist - The Artist
Mins - Minutes the song has been playing
Secs - The seconds the song has been playing
Make all the dynamic text you want and place it all where you want. Once your done export the file as a SWF file and upload it to a server. Now start winamp and play a song, What happens is the song info is saved to the file c:\info.txt you saved. That info is then sent to the php file where it is sorted out and saved as a file called info.txt on your server (thats why we had to CHMOD). That file is then read by the second php file and that info is then read by the actionscript from the flash. Flash then displays the data in your dynamic text spots.
If it doesn't work or you need a little bit of extra help, you can view my source file here
