1. Home
  2. Computing & Technology
  3. Animation
photo of Adrien-Luc Sanders
Adrien-Luc's Animation Blog

By Adrien-Luc Sanders, About.com Guide to Animation since 2005

Using Variables from an External Source with Flash's loadVariables()

Sunday April 6, 2008
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.

Poll: What do you use Flash for?

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation

©2009 About.com, a part of The New York Times Company.

All rights reserved.