# \_global. help

**URL:** https://forum.kirupa.com/t/-global-help/291537
**Category:** Uncategorized
**Created:** [July 1, 2009, 4:06am UTC](https://forum.kirupa.com/t/-global-help/291537 "2009-07-01T04:06:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Press\_Tilty](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Press\_Tilty](https://forum.kirupa.com/u/Press_Tilty)
#### Post date: [July 1, 2009, 4:06am UTC](https://forum.kirupa.com/t/-global-help/291537/1 "2009-07-01T04:06:02Z")

</div>

hi, im using as2 (cs3), and am having trouble with \_global.

i have a button and a movieclip  
the movieclip has two frames (both with stop(); in the actions)  
the first is called “dont\_have” and is blank  
the second is called “have\_screwdriver” and has my screwdriver on it.  
in the actions of the movieclip (SD\_inventory), it has this code:

onClipEvent (load){  
\_global.screwdriver = false;  
}  
onClipEvent (enterFrame){  
if (global.screwdriver = true){  
gotoAndStop (“SD\_inventory”, “have\_screwdriver”);  
}  
}  
(any typos are in here only, ive triple checked my code in AS)  
the button has:  
on (release){  
unloadMovie (this);  
\_global.screwdriver = true;  
}

when i Test Movie, the SD\_inventory shows up on the “have” frame, and clicking on the button does nothing.  
help?
