[ascoders] AW: gotoAndPlay Aufruf in einer Klasse?

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

>a) butterfly.prototype = new MovieClip();
>
>b) butterfly.prototype.__proto__ = MovieClip.prototype;

ich meine b) wäre besser. ist aber wohl mehr so die inoffizielle variante
(aber "__proto__" ist nicht undokumentiert, obwohl es nicht empfohlen wird.
und read only ist es auch nicht).

allerdings funzt bei b) der super operator nicht mehr.

zu alldem schreibt moock hier:

http://www.macromedia.com/devnet/mx/flash/articles/actionscript2/asdg2_ch12.
pdf

"In any case, the only time you should concern yourself with prototype and
__proto__
is when you hit a real limitation in your work. Unless the standard
inheritance system
in ActionScript causes problems for your programs, you should not bother
with
__proto__;"


grüsse,
jan

------------------------------------------------------
Archiv   : //www.freelists.org/archives/ascoders/
Optionen : //www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: