Help with Inventory

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.:slight_smile: :slight_smile:

thanks,
Shiniboy