# Selfreferencing button instances

**URL:** <https://forum.kirupa.com/t/selfreferencing-button-instances/127703>\
**Category:** Uncategorized\
**Created:** [November 5, 2004, 8:44am UTC](https://forum.kirupa.com/t/selfreferencing-button-instances/127703 "2004-11-05T08:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![instantjesus](https://avatars.discourse-cdn.com/v4/letter/i/ecccb3/32.png) [@instantjesus](https://forum.kirupa.com/u/instantjesus)\
**Post date:** [November 5, 2004, 8:44am UTC](https://forum.kirupa.com/t/selfreferencing-button-instances/127703/1 "2004-11-05T08:44:50Z")

</div>

i have this script in a button:

```auto

on (release){
_root.var="instancename";
}

```

and the button-instance itself is called “instancename”.

now, i want to have many buttons with different names, and each time such a button is being clicked, \_root.var should represent the instancename of the clicked button. with normal scripting, i would have to type in the instancename twice; first, i will would have to type in the instancename of the instance, then i would have to type it again in the on(release)-block.

question:  
is there any keyword, like [FONT=Courier New] “this” [/FONT], which i could use in a buttoninstance to reference the instancename of the instance without typing the instancename again in the script of the instance?

cheers, instantjesus
