# Help with Inventory

**URL:** <https://forum.kirupa.com/t/help-with-inventory/231802>\
**Category:** programming\
**Created:** [July 8, 2007, 9:12am UTC](https://forum.kirupa.com/t/help-with-inventory/231802 "2007-07-08T09:12:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiniboy](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@shiniboy](https://forum.kirupa.com/u/shiniboy)\
**Post date:** [July 8, 2007, 9:12am UTC](https://forum.kirupa.com/t/help-with-inventory/231802/1 "2007-07-08T09:12:50Z")

</div>

sorry for this second interruption but… how do you make an inventory appear by clicking a button? i know this may not sound clear but this is the actionscript i have so far…  
(heh, made this myself but doesn’t work because im a noob:d:)  
(-Action Script 3-)

on (release) {  
if \_root.inventory.\_visible = false; {  
\_root.inventory.\_visible = true;  
}else{  
\_root.inventory.\_visible = false;  
}  
}

it keeps saying  
**Error** Scene=Scene 1, layer=bag, frame=2:Line 4: ‘else’ encountered without matching ‘if’  
}else{

i dont get that…  
and…

**Error** Scene=Scene 1, layer=bag, frame=2:Line 2: ‘(’ expected  
if \_root.inventory.\_visible = false; {

i put ‘)’ everywhere but it keeps saying this!

please help me thanks.🙂 🙂

thanks,  
Shiniboy
