# "this" refers to wrong instance

**URL:** https://forum.kirupa.com/t/this-refers-to-wrong-instance/208343
**Category:** Uncategorized
**Created:** [November 27, 2006, 8:03pm UTC](https://forum.kirupa.com/t/this-refers-to-wrong-instance/208343 "2006-11-27T20:03:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![antongranik](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@antongranik](https://forum.kirupa.com/u/antongranik)
#### Post date: [November 27, 2006, 8:03pm UTC](https://forum.kirupa.com/t/this-refers-to-wrong-instance/208343/1 "2006-11-27T20:03:51Z")

</div>

Hi guys! Bumped into a problem and don’t understand why this is happening. I got \_root timeline, there I placed mc.map (movieclip), inside it I got a button, and on that button I placed this code:

```auto
on (press) {
     trace(this._name);
}

```

And in the output window I see the name of the movieclip instance (“map”). Why? I need it to refer to that button… :pir:
