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

actionscript, actionscript-3, apache-flex, flash

Solution

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

greetz

back2dos

Problem

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" ```

Original source