Flex: given Class object, get the name of the class it represents

paleozogt picture paleozogt · Jun 26, 2009 · Viewed 11k times · Source

In Flex, say I have a Class object. How do I get a string for the class it represents?

e.g.:

var clazz:Class= String;
trace(clazz);  // this gives "[class String]" but what I want is "String"

Answer

back2dos picture back2dos · Jun 26, 2009

flash.utils::getQualifiedClassName is the function you are looking for ... ;)

greetz

back2dos