Re: [Flashcoders] interfaceof
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 the solution I was hinking of, if no other. Thanks you both. --- erixtekila http://blog.v-i-a.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] interfaceof
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
RE: [Flashcoders] interfaceof
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