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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.