prototype chain is in for ecma complience. the white paper is a good source of info
On Fri, Feb 15, 2008 at 1:03 PM, Roscoe P Coltrane <[EMAIL PROTECTED]> wrote: > 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] <flexcoders%40yahoogroups.com>, "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] <flexcoders%40yahoogroups.com> > [mailto:[email protected] <flexcoders%40yahoogroups.com>] On > > Behalf Of Roscoe P Coltrane > > Sent: Thursday, February 14, 2008 6:15 AM > > To: [email protected] <flexcoders%40yahoogroups.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 > > > > > -- j:pn \\no comment

