PDA

View Full Version : php and flash



cuerotech
July 19th, 2003, 05:03 PM
i have a php script that gets a color from a database and stores it in the variable $color. how can i make is so that my flash movie gets the variable from the script and changes a movie clip to that color?

eyezberg
July 19th, 2003, 07:00 PM
php: echo $color
in flash use setRGB with the color variable..you don't say in which format it comes, rgb, hex, name, so that's all i can do for you..

ahmed
July 19th, 2003, 07:25 PM
shouldn't that be

echo "myVariable=$color";

:q:

claudio
July 19th, 2003, 11:13 PM
You could get the variables from a txt file too, if you want.

cuerotech
July 20th, 2003, 05:06 AM
k, thanks guys. but now im getting a variable $background. so i did echo "background=$background"; so that i can still use the variable background in flash. then, i try this: holder.loadMovie(background); and it equals onfloor.jpg, but i dont see onfloor.jpg loaded when i do this! if i just type "onfloor.jpg" it works fine..