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]

Reply via email to