What exactly does it mean when the Flex doco says: "This method returns true if the object is in the prototype chain of the object specified by the the Class parameter." What does "prototype chain" mean here? Sorry for my ignorance if this is a dumb question. And are you saying this is an obsolete method?
--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > 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: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Roscoe P Coltrane > Sent: Thursday, February 14, 2008 6:15 AM > To: [email protected] > 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 >

