There isn't much introspection APIs in AS. I'd use getQualifiedClassName instead of getClassInfo. getClassInfo can be expensive
From: [email protected] [mailto:[email protected]] On Behalf Of Maciek Sakrejda Sent: Thursday, December 11, 2008 3:03 PM To: flexcoders Subject: [flexcoders] runtime class type reference? Is there a way to get a reference to the runtime type of an AS3 object? Something like Foo.class in Java? I think I can do var mysteryObjClass:Class = getDefinitionByName(getClassInfo(mysteryObj).name); but this strikes me as a rather roundabout way of doing it. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com

