# Name of a Layer by script

**URL:** https://forum.kirupa.com/t/name-of-a-layer-by-script/226505
**Category:** flash
**Created:** [May 21, 2007, 10:33pm UTC](https://forum.kirupa.com/t/name-of-a-layer-by-script/226505 "2007-05-21T22:33:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![costa](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@costa](https://forum.kirupa.com/u/costa)
#### Post date: [May 21, 2007, 10:33pm UTC](https://forum.kirupa.com/t/name-of-a-layer-by-script/226505/1 "2007-05-21T22:33:37Z")

</div>

Dear all,

Is it possible to know the name of a layer holding a specific instance using AS3?

I was checking “layer.name” but a layer number has to be specified in order to get the name.

Thanks in advance
