Jump to content

Flash And Php?

Recommended Posts

So I'm planning on creating a new version of my site and I want it so that when someone clicks on an artists name, it loads a page (say_view_artist.php) and it will be passed an artist ID which will access a database and pull out all the info I want to display about that artist. What I would like to do in Flash is create a music player on the side of the page that would load songs based on that artist ID, probably by loading a bunch of songs out of folder on the server.Could anyone provide a pseudo-code outline of how something like that could happen?

Link to post
Share on other sites

I think Flash can accept parameters by the object tag... or I think even the query string. So, by using PHP, you generate something like

<object ...><param name="Flashvars" value="id=10" /></object>

And from Flash... I don't know any ActionScript, but from the ActionScript reference, it appears, you can access those parameters with something like


Link to post
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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