guten Tag,
ich hab Folgende OOP version einen XML parsers bzw. eines config file parsers!
Code:
function Tour()
{
this._items= new Array();
this.configFile="tour.xml";
this.transition= null;
_this= this;
}
Tour.prototype.initTour= function()
{
this.ConfXML = new XML();
this.ConfXML.load(_this.configFile);
this.ConfXML.onLoad = function(success)
{
//calls the methode of the first instanz of the object!
Relopia.parsConf(success);
}
} der rote Bereichs tellt mein Problem dar. nachdem ich nun im scope von dem XMLObject bzw. dessen Instant bin kann ich meine methoden des Tour objectes nicht mehr ansprechen! mit _this.methode(); kann ich zwar auf die attribute abe rnicht auf die mthoden zugreifen!
wie funkt das?
lg, pranko