Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-26-2005, 01:18 AM #1
- Join Date
- May 2005
- Thanked 0 Times in 0 Posts
Some help...server side content in flash...
So I have this PHP page and this flash movie. I want to make it so the flash pulls the info from the php file, (or if I have to convert it, to whatever I have to convert it to.) How would I do this?
05-30-2005, 05:23 AM #2
What you want to do is have the PHP script print/echo out the variables you want to feed into flash, just like you would if you were feeding the actionscript a text file...
just incase you're not 100% familiar with this practice, here's some information on sending data to actionscript from a text file:
so your .txt file is going to look something like this:
To feed the same exact variables to flash via php, you'd do the following:
Now back to your actionscript, you'd do the following:PHP Code:
# lets say this file is called "php_variables.php"
$name = "Samantha";
$hobby = "flash";
$email_address = "Samantha@guesswho.com";
I'm assuming you have a good understanding of loading variables into flash from a .txt file. If l'm wrong and you need more assistance or help, please feel free to post right back!