# Global variable with embedded movie

**URL:** https://forum.kirupa.com/t/global-variable-with-embedded-movie/42668
**Category:** flash
**Created:** [February 11, 2004, 6:10pm UTC](https://forum.kirupa.com/t/global-variable-with-embedded-movie/42668 "2004-02-11T18:10:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Austin](https://forum.kirupa.com/u/Austin)
#### Post date: [February 11, 2004, 6:10pm UTC](https://forum.kirupa.com/t/global-variable-with-embedded-movie/42668/1 "2004-02-11T18:10:47Z")

</div>

Im using loadMovie in a parent movie to load my content movies. I need the content movies to be able to access a variable set in the content movie. I’ve tried using global variables and can’t seem to get anything going.

I’ve got two layers. The top layer has the header and footer graphic alongs with the scripting for the menu. The bottom layer is where the content movie is loaded into.

I’m declaring the \_global variable in the top layer, outside of any functions, and trying to access it from the loaded swf in the content (bottom) layer.

Are there any tricks with syntax placement etc? Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 11, 2004, 11:38pm UTC](https://forum.kirupa.com/t/global-variable-with-embedded-movie/42668/2 "2004-02-11T23:38:29Z")

</div>

do u access the global variable with \_global.variableName???

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 12, 2004, 3:52pm UTC](https://forum.kirupa.com/t/global-variable-with-embedded-movie/42668/3 "2004-02-12T15:52:55Z")

</div>

yes, I am accessing it with a “\_global.” prefix. I’m using trace in the loaded content movie on the global vaiable and it’s not showing any value.
