# Controlling 1 object from another

**URL:** https://forum.kirupa.com/t/controlling-1-object-from-another/233301
**Category:** flash
**Created:** [July 22, 2007, 5:21pm UTC](https://forum.kirupa.com/t/controlling-1-object-from-another/233301 "2007-07-22T17:21:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pcela](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pcela/32/3915_2.png) [@Pcela](https://forum.kirupa.com/u/Pcela)
#### Post date: [July 22, 2007, 5:21pm UTC](https://forum.kirupa.com/t/controlling-1-object-from-another/233301/1 "2007-07-22T17:21:30Z")

</div>

Hello, this is the problem.  
Im making tile-based game in as3. I have hero class. He needs an access to tile objects, but I just cant do it. All objects are made from document class constructor. In hero class I did this to reference the main stage:

```php
public class Hero extends MovieClip
    {
        private var mc_stage:Stage;
        public function Hero(stageRef:Stage)
        {
            mc_stage = stageRef;
            trace(mc_stage.tile0_0.walkable);
        }
        
    }

```

So when I was creating hero object, I did

```php
new Hero(this.stage);

```

This referenced main stage to hero class, but how can I get other objects from stage?

Tracing gives me this error:  
1119: Access of possibly undefined property tile0\_0 through a reference with static type flash.display:Stage.
