# Class's name

**URL:** https://forum.kirupa.com/t/classs-name/190837
**Category:** flash
**Created:** [June 15, 2006, 12:45am UTC](https://forum.kirupa.com/t/classs-name/190837 "2006-06-15T00:45:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![NinoScript](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ninoscript/32/1484_2.png) [@NinoScript](https://forum.kirupa.com/u/NinoScript)
#### Post date: [June 15, 2006, 12:45am UTC](https://forum.kirupa.com/t/classs-name/190837/1 "2006-06-15T00:45:56Z")

</div>

I need to know the type of a component, something like

```auto

//i have a DateField named abc
trace(typeof(abs)); // should return "DateField"

```

but that’s not possible, so i tried doing this:

```auto

DateField.prototype._typeof = "DateField";
trace(abs._typeof); // should return "DateField"

```

but, components come from UIObject, but not from Objects, so they dont have the “prototype” method ☹

is there anyway you can think of?

:\*(
