Over 16,531,074 people are on fubar.
What are you waiting for?

Global Variables

Yep, these lovely things span from Los Angeles to the heart of Tokyo...maybe. What a global variable is in Actionscript is a variable you can access from ANYWHERE in your Flash file. Once you define it as a global... _global.variableName=value; you can change its value ANYWHERE by simply calling it and changing the part that says "value". These are different from other variables in that others can only be used in the code window they're placed in. If you have a variable named Pinky, for instance, defined in a movie clip... var Pinky; you can't change it in another movie clip, button, or key frame. You can access its value using a relative path... this._parent.randomMovieClip.Pinky (yes, you have to type the whole thing so the file knows where to look) but you can't change its value outside the window in which it was defined, or Flash is going to treat it like an entirely different variable. Globals make variables easier to manage if you have more than one code window, so try using them for video games, animated web sites, and what-not.
Leave a comment!
html comments NOT enabled!
NOTE: If you post content that is offensive, adult, or NSFW (Not Safe For Work), your account will be deleted.[?]

giphy icon
last post
16 years ago
posts
6
views
1,207
can view
everyone
can comment
everyone
atom/rss

other blogs by this author

 14 years ago
projects
 15 years ago
Me So Fickle...
 15 years ago
Watch Out...
 15 years ago
random junk
 16 years ago
Why I came here...
 16 years ago
Work Blogs...Fun
 16 years ago
Character Bios
 16 years ago
Writing Tips
official fubar blogs
 8 years ago
fubar news by babyjesus  
 13 years ago
fubar.com ideas! by babyjesus  
 10 years ago
fubar'd Official Wishli... by SCRAPPER  
 11 years ago
Word of Esix by esixfiddy  

discover blogs on fubar

blog.php' rendered in 0.0686 seconds on machine '51'.