Jump to content

Flash And Php?


thescientist
 Share

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

LoaderInfo.parameters["id"]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...