I have tried quite a few different things but all the scripts I have tried are incorrect. Here is what the xml file for the player looks like. <?xml version="1.0" encoding="UTF-8"?> <player showPlaylist="yes" autoStart="yes"> </player> I have been trying more with the playlist script, because the playlist is updateble for the songs. Here is what the original playlist script looks like. <?php // setting the directory to search for mp3 files $dir = "mp3/"; // reading the directory and inserting the mp3 files in the playlist array $n = 0; $playlist = array(); $fdir = opendir($dir); while($i = readdir($fdir)) { // if a .mp3 string is found, add the file to the array if (strpos(strtolower($i),".mp3") !== false) { $playlist[$n] = $i; $n++; } } // close the directory and sort the array closedir($fdir); array_multisort($playlist); // echoing the playlist to flash echo "<player showDisplay=\"yes\" showPlaylist=\"yes\" autoStart=\"no\">\n"; for ($i=0; $i<sizeof($playlist); $i++) { // for the title it filters the directory and the .mp3 extension out echo " <song path=\"$dir$playlist[$i]\" title=\"".str_replace(".mp3","",$playlist[$i])."\" />\n"; } echo "</player>"; ?> Thanks for everyone's help.