# How to replace \_global in AS3?

**URL:** <https://forum.kirupa.com/t/how-to-replace--global-in-as3/285094>\
**Category:** flash\
**Created:** [March 26, 2009, 11:25pm UTC](https://forum.kirupa.com/t/how-to-replace--global-in-as3/285094 "2009-03-26T23:25:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nxsd](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nxsd](https://forum.kirupa.com/u/nxsd)\
**Post date:** [March 26, 2009, 11:25pm UTC](https://forum.kirupa.com/t/how-to-replace--global-in-as3/285094/1 "2009-03-26T23:25:04Z")

</div>

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

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

```
