This question is a continuation of the issue that negatyve helped me with earlier, titled: php into flash mx
I am trying to make an SWF that displays data from a Db based on the url of the page that it is embedded in.
Presently, it works if I hard code the variable directly into the SWF like this:
But how do I get Flash to read this variable directly from the html page instead, so that I can use the same SWF for multiple variables?
I am able to get the variable from the html page to display in a dynamic text field, but I can't figure out how to get that variable into the myLoad statement so that it gets passed to the PHP script and loads the correct data into the SWF.
(In my PHP script I have "SELECT * where musical_group_id =" . $_GET[musical_group_id];")
Once I get Flash to append the variable onto the myLoad statement I assume I can use either the query string method or FlashVars to pass it into the SWF. Or?
Do I somehow have to pass the variable from the html url into flash and then back out to the php to be read again by the SWF?...
Or do I need to put the php and html together? I was hoping to keep them separate so that the SWF could be more portable.
PHP script tha returns the data: flash_tour.php
Flash page that the SWF is embedded in:flash_tour.html
background on this question: php into flash mx
Thanks alot, billywig