RE: [Flashcoders] interfaceof

2005-12-09 Thread Scott Hyndman
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

Re: [Flashcoders] interfaceof

2005-12-09 Thread Johannes Nel
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

Re: [Flashcoders] interfaceof

2005-12-09 Thread erixtekila
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