Flex makes almost no use of AS3's old-style prototype-based inheritance; it uses the new class-based inheritance. If by "descendant" you mean "instance of", use the 'is' operator: var b:Button = new Button(); trace(b is UIComponent); // --> true Gordon Smith Adobe Flex SDK Team
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roscoe P Coltrane Sent: Thursday, February 14, 2008 6:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Example of Object.isPrototypeOf () Could someone give me a working or semi-working example of how/when to use isPrototypeOf()? I was thinking that I could query an object and if it was a descendent of another object, [the argument to isPrototypeOf()], the method would return true. Not so :) Obviously I don't understand the usage of this method. Thanks, Roscoe