Flash actionscript 3.0: how to declare a global variable in AS3.0

how to declare a global variable in AS3.0

Posted by Sankar.G | Posted in | Posted on 3:20 PM

create a class file and name it as Globe and put this script in class file

package
{
public class Globe
{
public static var temp:Number = 0;
}
}

And in flash AS3.0 file temp is the global variable you can use like this

Globe.temp =5;

Comments (1)

Nice:)