# Retrieve Instance Name of Dynamic Button

**URL:** <https://forum.kirupa.com/t/retrieve-instance-name-of-dynamic-button/176114>\
**Category:** flash\
**Created:** [January 20, 2006, 1:23pm UTC](https://forum.kirupa.com/t/retrieve-instance-name-of-dynamic-button/176114 "2006-01-20T13:23:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chant9](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@chant9](https://forum.kirupa.com/u/chant9)\
**Post date:** [January 20, 2006, 1:23pm UTC](https://forum.kirupa.com/t/retrieve-instance-name-of-dynamic-button/176114/1 "2006-01-20T13:23:21Z")

</div>

Hi

I need to retieve the instance name of a button but cannot do it the same with a dynamic button the same as I can with a component button.  
For a built in component button the below code would output \_level0.buttonName, however for a dynamic button i have created it only outputs \_level0.

on (release) {  
trace(this);  
}

Any ideas how to get the instance name of dynamic buttons?

Cheers
