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 PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> erixtekila
> Sent: December 9, 2005 10:38 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] interfaceof
>
> Hi folks,
>
>
> Is there a way to know if an object belong to a special interface type ?
> I assume it's compilie time only ?
>
> What I'd like is to get the same behavior than instanceof but with
> interface.
>
> Any idea ?
>
> Thanks.
> -----------
> erixtekila
> http://blog.v-i-a.net/
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
j:pn
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to