# Won't read variable

**URL:** <https://forum.kirupa.com/t/wont-read-variable/97463>\
**Category:** Uncategorized\
**Created:** [December 22, 2003, 8:00pm UTC](https://forum.kirupa.com/t/wont-read-variable/97463 "2003-12-22T20:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandman9](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sandman9](https://forum.kirupa.com/u/Sandman9)\
**Post date:** [December 22, 2003, 8:00pm UTC](https://forum.kirupa.com/t/wont-read-variable/97463/1 "2003-12-22T20:00:20Z")

</div>

I have a MC on my stage. It has let’s say a motion tween that covers the stage when you click on a button. At the end of this motion tween we have a loadMovie (it loads a external swf). Then after that we have another motion tween that reveals the stage this time (showing the new swf)

My problem is that I don’t want the animation in the swf to start until the motion tween that reveals the stage is complete.

so what i did was at the end of the motion tween that reveals the stage i put

```auto

_global.myFlag=3;

```

then in the first frame the of movie being loaded i put

```auto

stop();
if (myFlag==3) {
    blah blah ...
}

```

this does not work … anyone know of a different way or why this is not working?

Cheers  
Sandman9
