# Retrieving name of an Object Instance

**URL:** <https://forum.kirupa.com/t/retrieving-name-of-an-object-instance/174514>\
**Category:** flash\
**Created:** [January 6, 2006, 9:48am UTC](https://forum.kirupa.com/t/retrieving-name-of-an-object-instance/174514 "2006-01-06T09:48:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prisma](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@prisma](https://forum.kirupa.com/u/prisma)\
**Post date:** [January 6, 2006, 9:48am UTC](https://forum.kirupa.com/t/retrieving-name-of-an-object-instance/174514/1 "2006-01-06T09:48:07Z")

</div>

Is it possible to do something to the effect of

```php

Class A extends B {

    public function A() {
        this.onRelease=this.onTrace;
    };

    public function onTrace() {
        trace(this._name);
    };
};

```

to get the instance name of an object. I have tried a bit with \_\_resolve and such, but only get [object Object].

Thanks. 🐇
