I know you can do this.
var implementsInterface:Boolean = ISomeInterface(objectToTest) != null;
You may also be able to use instanceof, but I haven't tried.
Scott
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
erixtekila
Sent: December 9, 2005 10:38
instanceof will work at runtime
On 12/9/05, Scott Hyndman [EMAIL PROTECTED] wrote:
I know you can do this.
var implementsInterface:Boolean = ISomeInterface(objectToTest) != null;
You may also be able to use instanceof, but I haven't tried.
Scott
-Original Message-
From: [EMAIL
instanceof will work at runtime
Thanks.
I should have tested by myself.
You're true, instanceof works for extends and inplements.
On 12/9/05, Scott Hyndman [EMAIL PROTECTED] wrote:
I know you can do this.
var implementsInterface:Boolean = ISomeInterface(objectToTest) !=
null;
This was
3 matches
Mail list logo