# How to access displayObjects in frame 2

**URL:** https://forum.kirupa.com/t/how-to-access-displayobjects-in-frame-2/236286
**Category:** Uncategorized
**Created:** [August 19, 2007, 2:26pm UTC](https://forum.kirupa.com/t/how-to-access-displayobjects-in-frame-2/236286 "2007-08-19T14:26:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oaki](https://avatars.discourse-cdn.com/v4/letter/o/7993a0/32.png) [@oaki](https://forum.kirupa.com/u/oaki)
#### Post date: [August 19, 2007, 2:26pm UTC](https://forum.kirupa.com/t/how-to-access-displayobjects-in-frame-2/236286/1 "2007-08-19T14:26:33Z")

</div>

Hi,

I having trouble getting a reference to a displayObject in frame 2.

I defined the document class in which I save a reference to the stage.

In frame 2, i want to access a displayObject that has already been placed on the stage with the instance name: “obj1” like this:

```auto

trace( _stageRef.getChildByName("obj1") );

```

but i keep getting null?  
What am I doing wrong?
