# Object name...?

**URL:** <https://forum.kirupa.com/t/object-name/178870>\
**Category:** Uncategorized\
**Created:** [February 14, 2006, 10:42pm UTC](https://forum.kirupa.com/t/object-name/178870 "2006-02-14T22:42:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YellowSnow](https://avatars.discourse-cdn.com/v4/letter/y/f17d59/32.png) [@YellowSnow](https://forum.kirupa.com/u/YellowSnow)\
**Post date:** [February 14, 2006, 10:42pm UTC](https://forum.kirupa.com/t/object-name/178870/1 "2006-02-14T22:42:14Z")

</div>

I have created a custom class (Force.as)

Once Ive created an instance though i have problems accessing its name

```auto
class Force {
 //Variable declarations
 //
 function Force() {
    trace([COLOR=red] **?????** [/COLOR]);
 }
 }

```

[COLOR=black]so when i create a new instance of my class:[/COLOR]

```auto
 
[COLOR=seagreen]myForce[/COLOR]=new Force();

```

i want it to trace “[COLOR=seagreen]myForce[/COLOR]” or "[COLOR=seagreen]\_level0.myForce[/COLOR][COLOR=black]"or[/COLOR] something like that.

What should i trace ([COLOR=red]red[/COLOR]) to get this effect?
