# Getting variables from loaded movies

**URL:** https://forum.kirupa.com/t/getting-variables-from-loaded-movies/162752
**Category:** flash
**Created:** [September 15, 2005, 11:09pm UTC](https://forum.kirupa.com/t/getting-variables-from-loaded-movies/162752 "2005-09-15T23:09:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zignorp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zignorp/32/1741_2.png) [@zignorp](https://forum.kirupa.com/u/zignorp)
#### Post date: [September 15, 2005, 11:09pm UTC](https://forum.kirupa.com/t/getting-variables-from-loaded-movies/162752/1 "2005-09-15T23:09:51Z")

</div>

Hello,  
I’ve created a global variable in the first frame of my main movie:

\_global.gMyScore = 0;

I’m loading a smaller movie into a movie clip in the second frame of that movie, it understands the score from the main movie global variable.

The score is changing in that movie depending how a user answers questions (radio buttons):

if (true\_btn.selected == true)  
{  
gMyScore = gMyScore+10;

```
  }

```

This is working in that movie, but I want to pass it on to the main movie, to affect the score in subsequent loaded movies, and I can’t figure out how to do that (it’s on a next button handler that loads the next movie).  
Any help would be greatly appreciated.

Thanks!
