# \[AS2\] Making an escape game. Help with an if statement...and equiping an item

**URL:** <https://forum.kirupa.com/t/as2-making-an-escape-game-help-with-an-if-statement-and-equiping-an-item/320891>\
**Category:** flash\
**Created:** [April 5, 2011, 2:52am UTC](https://forum.kirupa.com/t/as2-making-an-escape-game-help-with-an-if-statement-and-equiping-an-item/320891 "2011-04-05T02:52:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiftwig113](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@shiftwig113](https://forum.kirupa.com/u/shiftwig113)\
**Post date:** [April 5, 2011, 2:52am UTC](https://forum.kirupa.com/t/as2-making-an-escape-game-help-with-an-if-statement-and-equiping-an-item/320891/1 "2011-04-05T02:52:42Z")

</div>

Well i need help with two things!

1. i need help with an if statement that satisfies the following

```auto

_root.bead._visible=1
_root.App._visible=1
_root.Grapes._visible=1

//code specifying that the 3 clickable objects have been found and placed in their item slots

```

once the above is satisfied all i want is for it to “GotoAndPlay (2)”

In my escape game there is going to be two sets of inventory, all i want it to do is when the above inventory has been all found for it to go to another frame.

1. My second issue  
I want to be able to click on an item in inventory and equip it for use…in the fla i will attach, i have multiple items. i want to click the grape, have an indicator showing its equipped and the click the random blue square which is a place holder for a door. i want to be able to use the grape (key) to open the square (door) i want the script to gotoandstop (2).

All help appreciated! thanks
