hi, guys !
I have a “XmlParserJogo” class:
class XmlParserJogo {
[COLOR=Blue]private var xmlObj:XML;
[/COLOR] [COLOR=Blue]private var noJogo:XMLNode;[/COLOR]
private var noTime1:XMLNode;
private var noTime2:XMLNode;
function XmlParserJogo() {
this.xmlObj = new XML();
this.xmlObj.ignoreWhite = true;
}
public function setXml(url:String):Void {
this.xmlObj.load(url);
[COLOR=Red] [COLOR=Blue]this[/COLOR].xmlObj.[/COLOR]onLoad = function(success:Boolean):Void {
if (success) {
[COLOR=Red] [COLOR=Blue]this[/COLOR].noJogo = [COLOR=Blue]this[/COLOR].xmlObj.firstChild;
trace(this.noJogo);[/COLOR]
} else {
trace(" <<<<<< Falha na leitura do xml: " + url + " >>>>>>>>>>>");
}
}
}
So.
My problem is with the “this” keyword. If I use “this” inside the “onLoad” function, it reffers to xmlObj private var. The question: How can I refer my “noJogo” propertie inside the “onLoad” function??
Anyone knows it?
pp