title: Getting variable data from one class to another
body: <p>I  have a game where you explore a house. There are keys and locked doors. Each room is a different class. Lets say in one class your in a room and you find a key. I want a variable that says that the key is in the inventory. Then in another class there is a room where I need to use the key and open the door. How do I get the variable that says you have that key to open a door that looks for that specific variable to be true and lets you through the door. Sorry if this sounds incoherent. I am extremely tired and am writing this before I go to bed. Thanks in advance for the responses. I am also fairly new at as3.</p>