This method doesn't work, or?
The note in the help seems to imply, that we want to override this
method. Maybe it is just a stub?

Note: Methods of the Object class are dynamically created on Object's
prototype. To redefine this method in a subclass of Object, do not use
the override keyword. For example, A subclass of Object implements
function isPrototypeOf():Boolean instead of using an override of the
base class.

Cheers
Ralf.


On Fri, Feb 15, 2008 at 7:15 PM, Johannes Nel <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> 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 flexcoders@yahoogroups.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: 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
> > >
> >
> >
>
>
>
> --
> j:pn
> \\no comment 



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany

Reply via email to