The simplest way is to create an instance and use the 'is' operator: The
alternative is to use describeType(MyClass) and use E4X to look through
the <implements> tags, but this is almost certainly more expensive. And
I can't remember whether describeType() gives you the inherited
interfaces or whether you'd have to call describeType() on all
superclasses and superinterfaces.
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ninobronzed
Sent: Wednesday, September 05, 2007 11:47 AM
To: [email protected]
Subject: [flexcoders] Class (not instance of) implements Interface



Is there a way to check if a Class implements an Interface?
Not an instance of a class, but if com.something.MyClass implements
com.something.IMyInterface.



 

Reply via email to