Identifying custom classes

Hello all.

What would be the best way to have a class instance be able to identify others of its class? Or figure out the class of any object?

All help is greatly appreciated.

-Brekk

use instanceof

ex.
[AS]
var myXML:XML = new XML();

if(myXML instanceof XML)
trace(“match”);
[/AS]

it outputs ‘match’

excellent. must have overlooked that. thanks!