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 ------------------------------------------------------