PDA

View Full Version : Dynamic Php SWF


jnarowski
08-21-2005, 08:42 PM
I may have asked too much in my last post, I will start off with more simple question. I want to dynamically select a picture on my webserver, based on a variable in the url, say the url is ?pic=table.jpg. I want to have the flash swf pull that picture up and load it into the swf

saumya
08-22-2005, 06:12 AM
do you know the "LoadVars" object of flash?
if yes then use this object to load the variable and then use that variable and load the appropriate data.

jnarowski
08-22-2005, 02:23 PM
No I am unfamaliar with that command. I dont know at all how to get from php to swf...

saumya
08-23-2005, 04:19 AM
well, then first get some knowledge about "loadVars" object.
this is the object responsible for data transaction from flash.You will use this object to get outside data into flash and send data to outside resources.I would suggest, just go through the tutorials of flash help itself.Then come here and ask the doubt.
First of all see how data is transferred from a plain text file into flash.Then we will go on to see how to get data from php.Its simple, but you need clear understanding of loadVars.