Results 1 to 2 of 2
Jun 9, 2011, 12:42 #1
- Join Date
- May 2011
- 0 Post(s)
- 0 Thread(s)
pass query to flash player for mp3 file
I have been working on this part for a couple of days, being new to as3, it's taking me alot longer than it would take someone who knew what they were doing.
I have a member based website, they can upload mp3 files that go into their own folder, I have code in the upload script that automatically creates and updates the xml file in their folder.
I use flashvars to pass the xml info to the player, but it still isn't playing the mp3 files because the player's actionscript songURL is pointing to a static directory, I need it to point to the folder of the member profile being viewed at that moment.
I have the html for the xml file as follows:
<param name="movie" value="flplayer1a.swf"> <embed src="flplayer1a.swf" FlashVars="xml=<?php echo "members/$id/playlist.xml" ?>"></embed> <param name="FlashVars" value="xml=<?php echo "members/$id/playlist.xml" ?>">
songURL = new URLRequest("mp3_files" + firstSong + ".mp3");
the code makes another reference to this for the song switching.
so how can I pass the members/$id query into the player for the mp3, can I add a second value in the flashvars? and if so what do I do with the songURL code?
NOTE: This is a prebuilt flash mp3 player I downloaded