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() {}
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments