# Dynamic Instance name vs manual Instance name?

**URL:** <https://forum.kirupa.com/t/dynamic-instance-name-vs-manual-instance-name/275128>\
**Category:** flash\
**Created:** [November 10, 2008, 11:47am UTC](https://forum.kirupa.com/t/dynamic-instance-name-vs-manual-instance-name/275128 "2008-11-10T11:47:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanCremona](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Post date:** [November 10, 2008, 11:47am UTC](https://forum.kirupa.com/t/dynamic-instance-name-vs-manual-instance-name/275128/1 "2008-11-10T11:47:29Z")

</div>

Hello,

I would like to access this object (taken from Debug \> List Objects of in flash player)

```
 ActionScript Code:
 [LEFT][COLOR=#0000ff]Target[/COLOR]=[COLOR=#ff0000]"_level0.promotion0.loader_mc.instance87.promoTXT"[/COLOR]

```

[/LEFT]

This is what I am trying to access it with:

```
 ActionScript Code:
 [LEFT][COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR] [COLOR=#0000ff]this[/COLOR].[COLOR=#000080]getChildByName[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]"promotion0"[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#000080]loader_mc[/COLOR].[COLOR=#000080]getChildByName[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]"instance87"[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#000080]promoTXT[/COLOR].[COLOR=#0000ff]text[/COLOR] [COLOR=#000000])[/COLOR];

```

[/LEFT]

Error:

```
ActionScript Code:
[LEFT][COLOR=#000080]1119[/COLOR]: Access of possibly [COLOR=#0000FF]undefined[/COLOR] property loader_mc through a reference [COLOR=#0000FF]with[/COLOR] [COLOR=#0000FF]static[/COLOR] [COLOR=#0000FF]type[/COLOR] flash.[COLOR=#000080]display[/COLOR]:DisplayObject.

```

[/LEFT]

what is the correct way to do this?
