Using Variables from an External Source with Flash's loadVariables()
Have you ever had to open a Flash FLA, tweak one or two tiny, minor things about an image location or font color, republish it, reupload it...and then have to go back and do it all again hours or days later to make additional changes? It can get to be a bit of a pain - a pain that you can spare yourself by using loadVariables().
What does loadVariables() do? It allows you to store variable values in a text, PHP, ASP, or various other types of external files and then call it from within Flash, loading the values of those variables so that they can then be used to define various attributes of the objects on your stage without hardcoding them into the ActionScripting or basic properties. All you have to do is set those attributes equal to the variables in your external file, and then changing things in your movie is as easy as editing the variables file with a few quick changes and uploading it in a matter of seconds.


Comments
No comments yet. Leave a Comment