# Access properties of getChildAt

**URL:** <https://forum.kirupa.com/t/access-properties-of-getchildat/224674>\
**Category:** flash\
**Created:** [May 4, 2007, 11:09am UTC](https://forum.kirupa.com/t/access-properties-of-getchildat/224674 "2007-05-04T11:09:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knorcedger](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/knorcedger/32/1244_2.png) [@Knorcedger](https://forum.kirupa.com/u/Knorcedger)\
**Post date:** [May 4, 2007, 11:09am UTC](https://forum.kirupa.com/t/access-properties-of-getchildat/224674/1 "2007-05-04T11:09:49Z")

</div>

I was using Flash 9 AS3 Preview and i was using getChildAt to access the properties of an Object, but im testing it on Flex Builder 2, and it doesnt work. You can see the code on the example that follows. What can i do? Why isnt it tracing the “t” property when i use the getChildAt? Is there something else i can use?

```auto

package {
    import flash.display.Sprite;

    public class test extends Sprite
    {
        public var t:int
                
        public function test()
        {
            t = 7
            fire()
        }
        
        private function fire():void
        {
            trace(this.t) // traces -> 7
            trace(stage.getChildAt(0)) // traces -> [object test]
            //trace(stage.getChildAt(0).t) // Undefined property t
        }
    }
}

```
