It will probably be most efficient to create an instance and test it
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hrundik Sent: Sunday, November 18, 2007 8:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Check if class implements interface at runtime Hello! There is a way to check if object is an instance of some class and implements the interface: if(myobj is MyInterface) {...} But is there a way to check if class created at runtime implements certain interface? This way doesn't work (MyClass implements MyInterface): var myClassName : String = "MyClass"; var myclass : Class = flash.utilsgetDefinitionByName (myClassName); if(myclass is MyInterface){...} And i think it shouldn't, cause Class class extends Object class. -- With kindest regards, Nikita Petrov aka Hrundik mailto:[EMAIL PROTECTED] <mailto:me%40hrundik.ru>