11

I have a Class object, and besides finding the class name of an object, is it possible to get the class name from the Class object?

NebulaFox
  • 7,813
  • 9
  • 47
  • 65

2 Answers2

21

If you just need the class name, consider using flash.utils.getQualifiedClassName. describeType operations can be slow so if you don't need the other data it will be faster.

Kip
  • 107,154
  • 87
  • 232
  • 265
sean
  • 2,560
  • 3
  • 18
  • 21
4

The describeType() function will help you. By passing the class to it, it will return XML detailing all you need to know about the class including its name.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6#describeType()

Glycerine
  • 7,157
  • 4
  • 39
  • 65