Jump to content

[SOLVED] flash player


corillo181

Recommended Posts

hey i got a flash player working with php i got a few file

 

mp3.as = the flash coding

mp3.swf = the player

songs.php = the php xml of songs

and a few songs.

 

it works great.

my question is how can i use php to pass get values to flash.?

 

if this belongs in another forum don't mind changing it, i only use php so i think all my problem can be solve by it.

 

Link to comment
https://forums.phpfreaks.com/topic/71709-solved-flash-player/
Share on other sites

flash accepts variables passed to it in the URL. So, in your flash source parameter, you could just put "mp3.swf?song1=one.mp3&song2=two.mp3" etc.

 

you could also have flash query a URL occasionally to grab a new song. The php output would look much the same as before "song1=one.mp3&song2=two.mp3".

 

the difficult end will be creating a flash actionscript that knows when to call for the next song -- but that's a question for a flash forum.

Link to comment
https://forums.phpfreaks.com/topic/71709-solved-flash-player/#findComment-361071
Share on other sites

thats no problem i already got all that workin, but what i wanted to implement is on using

 

"mp3.swf?song1=one.mp3&song2=two.mp3"

 

the problem with this is that my xml file is located at the

 

mp3.as

 

so if i do add that line

 

how will the .as know when to look only for what ever is in the url and not what i wrote on it

 

the load file is

 

 

xml.onload("songs.php");

 

so wouldn't i have to change that to something like

 

xml.onload("songs.php?song1=one");

 

the problem is how do i get inside a .as file to do that.

 

or is there a better way? by not using .as?

 

Link to comment
https://forums.phpfreaks.com/topic/71709-solved-flash-player/#findComment-361109
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.