[ascoders] Re: AW: unterklasse von XML in flash 5?

  • From: timo stamm <t.stamm@xxxxxxxxxx>
  • To: ascoders@xxxxxxxxxxxxx
  • Date: Wed, 6 Nov 2002 20:25:22 +0100

oh ja, das ist viel besser. ist mir garnicht in den sinn gekommen.


danke,


timo




Am Mittwoch den, 6. November 2002, um 00:25, schrieb Claus Wahlers:


wäre es nicht einfacher, einen callback zu definieren?

LevelXML = function () {
        this.dataXML = new XML();
        this.dataXML.callback = this;
        this.dataXML.onLoad = this.onLoad;
};
LevelXML.prototype.onLoad = function () {
        trace(this.callback.method());
}

oder so:

LevelXML = function () {
        this.dataXML = new XML();
        this.dataXML.callback = this;
        this.dataXML.onLoad = function() { this.callback.onLoad(); };
};
LevelXML.prototype.onLoad = function () {
        trace(this.method());
}

cheers,
claus.

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

Other related posts: