There are a couple different ways of managing the global variable matter in AS3, so your best bet at finding one you want to utilize is to search Google using the terms "AS3 global variable" The search results will have a lineup of options for you to read about.