So your global variable is inside a class but you want to access it outside the class inside a function??
If that is the case, place the class identifier in front of your global variable.
Global myGlobal2:Int = 5
Global myGlobal:Int = 6
but I must say that this would be a very weird case of usage.