# Global Variables To Instances?

**URL:** <https://forum.kirupa.com/t/global-variables-to-instances/158188>\
**Category:** flash\
**Created:** [August 8, 2005, 3:26am UTC](https://forum.kirupa.com/t/global-variables-to-instances/158188 "2005-08-08T03:26:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sith\_FuzZO](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Sith\_FuzZO](https://forum.kirupa.com/u/Sith_FuzZO)\
**Post date:** [August 8, 2005, 3:26am UTC](https://forum.kirupa.com/t/global-variables-to-instances/158188/1 "2005-08-08T03:26:21Z")

</div>

hi guys, i made this animation movieclip, test\_mc. that has a button on it and i’m using 3 different instances of it.  
I’ve named each instance for example, oneI, twoI, threeI.

what i want is for when a frame 15 is passed over in the animation, something on the main scene to occur.

Now I’m using a global variable in the movieclip and im checking if it’s true or false on the main stage.

however, clicking on a button on the instance makes the global variable true, and when it is true i want the effects to occur on the instance i just clicked on, however, it happens for all 3 instances.

any ideas?
