[ascoders] OOP

Schönen guten Morgen,

ist es eigentlich möglich diese Methode an Textfelder zu übergeben?

MovieClip.prototype.getStage = function(){
        this.width = this._width;
        this.height = this._height;
        this.x = this._x;
        this.y = this._y;
        this.left = this._x;
        this.right = this._x + this.width;
        this.halfwidth = this.width/2;
}

z.B.

TextField.prototype = MovieClip.prototype;
oder 
TextField.__proto__ = MovieClip.prototype;

Peter

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

Other related posts: