July 11th, 2002, 05:02 AM
variables in flash
Is there anyway to make flash use variables from a mysql database?
July 15th, 2002, 05:31 PM
Have PHP (or your scripting language of choice) fetch the values and then pass them to your .swf something like this:
<param name="movie" value="your.swf?name=value">
http://www.phpforflash.com/ is a decent site for more info about this sort of thing.
July 18th, 2002, 07:13 AM
that is 1 way of doing it....another (more dynamic in my opinion) is to let flash load a script with variables in it.
on timeline let flash load variables (see loadmovie) and call a php (if u use php) script.
the php script gets the wanted variables from a database (mysql in your case) en echo them as:
If flash load this it can use the variables var1, var2 and var3.
For instance if you dynamically want to fill a textbox with the content of var1 you make a textbox in flash (after loading the script on the timeline) and use |AB in flash the make it a input type textbox and give the textbox the name var1.
Now your flashmovie will show the content of var1 in the textbox.