How to replace _global in AS3?

I need to access variable in one movie clip from another movie clip. I read somewhere to used public packages and classes but don’t really know what they are or how to use them. I tried the code below and got the error “1083: Syntax error: package is unexpected.” Any help on how to get these variables to be ‘global’ would be nice. Thanks

package {
    public class Globals {
        public static var something:String;
    }
}