|
'is' can only be used to test *instances*
of classes that implement interfaces. You don't use it with the class itself. So... function checkImp(className:Class):Boolean { return new className() is
IMyInterface; } will work. You could also use describeType(className)
and iterate over the <implementsInterface> child tags, but this would be
much more expensive. - Gordon From: Wondering if there is ability
to find out if a Class implements an interface? As in: YAHOO! GROUPS LINKS
|
- [flexcoders] Beta 2: Evaluating interfaces Scott Langeberg
- RE: [flexcoders] Beta 2: Evaluating interfaces Gordon Smith
- Re: [flexcoders] Beta 2: Evaluating interfaces Scott Langeberg
- Re: [flexcoders] Beta 2: Evaluating interfaces Manish Jethani

