# How to place a variable as "\_global.foo" in ActionScript 3?

**URL:** <https://forum.kirupa.com/t/how-to-place-a-variable-as--global-foo-in-actionscript-3/236293>\
**Category:** flash\
**Created:** [August 19, 2007, 4:09pm UTC](https://forum.kirupa.com/t/how-to-place-a-variable-as--global-foo-in-actionscript-3/236293 "2007-08-19T16:09:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimitri\_c](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@dimitri\_c](https://forum.kirupa.com/u/dimitri_c)\
**Post date:** [August 19, 2007, 4:09pm UTC](https://forum.kirupa.com/t/how-to-place-a-variable-as--global-foo-in-actionscript-3/236293/1 "2007-08-19T16:09:17Z")

</div>

Hello again -

I was wondering how it is possible to place/create a variable accessible from anywhere (as it was the case for example in AS2 -\> \_global.foo)  
Because ‘\_global’ isn’t more authorized.

• A basic posted example will be great… 👼

Thank you so far…  
Have a nice end of week-end.

- Dimitri [http://www.thebend.be/can6](http://www.thebend.be/can6)
