Send to a Friend

jmdecombe's avatar

How to test for class inheritance in ActionScript 3?

Asked by jmdecombe (9points) October 6th, 2009

I have two ActionScript 3 objects of type Class, a and b, and I want to check whether a is a class than directly or indirectly extends or implements class b. Furthermore, I want to do that in a way that rely as little as possible on legacy methods from previous versions of ActionScript. How would I write a statement or method (if multiple statements are required) so as to achieve that?

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.