Global variables and functions in Actionscript 2

In order to reuse a variable from a different timeline within the same fla file you will need to register the inital variable or function as a _global.

Todo this as a variable:

_global.myString:String = "My String";

Todo this as a function:

_global.myFunction = function() {}

Leave a Reply

Your email address will not be published.