[ascoders] AW: AW: Re: AW: Re: AW: Re: gotoAndPlay Aufruf in einer Klasse?

  • From: "Jursa, Jan (init)" <Jan.Jursa@xxxxxxx>
  • To: "'ascoders@xxxxxxxxxxxxx'" <ascoders@xxxxxxxxxxxxx>
  • Date: Tue, 1 Jul 2003 11:56:50 +0200

>Ich hoffe nur die __proto__ Eigenschaft bleibt in Flash bestehen.

...aber ECMA-262 standard ist es nicht und von MM wird es auch nicht
empfohlen

[auszug_aus_dem_BestPraxisWhitepaper]
Object Inheritance Setting the "__proto__" property to create inheritance
was the practice with Macromedia Flash Player 5. This practice is
unsupported in Macromedia Flash Player 6 and is not recommended. __proto__
should be treated as a read-only property. The correct way to do accomplish
inheritance is to create a prototype chain. To create a prototype chain, set
the "prototype" property of the subclass constructor function to an instance
of the superclass using the following syntax: ChildClass.prototype = new
ParentClass();
[/auszug_aus_dem_BestPraxisWhitepaper]

bleibt also abzuwarten, wann endlich Vererbung ne saubere sache wird (wie im
richtigen leben ;-)

grüsse,
jan
------------------------------------------------------
Archiv   : //www.freelists.org/archives/ascoders/
Optionen : //www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts:

  • » [ascoders] AW: AW: Re: AW: Re: AW: Re: gotoAndPlay Aufruf in einer Klasse?