I think I know the answer but... is there any way to prevent a global variable from being modified by later-executing ? I know global variables ar
Javascript is object oriented, rather than making the variable $public static, consider making it private and then properly providing an acessor method for getting, but not setting it.
e.g.
private var myGlobal : myType;
function GetMyGlobal() : myType
{
return myGlobal;
}
There are ten different ways to solve any given problem, your way and the right way.