# Problem with "this" statment

**URL:** https://forum.kirupa.com/t/problem-with-this-statment/228783
**Category:** flash
**Created:** [June 11, 2007, 3:17pm UTC](https://forum.kirupa.com/t/problem-with-this-statment/228783 "2007-06-11T15:17:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pedro\_paulo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pedro_paulo/32/2017_2.png) [@pedro\_paulo](https://forum.kirupa.com/u/pedro_paulo)
#### Post date: [June 11, 2007, 3:17pm UTC](https://forum.kirupa.com/t/problem-with-this-statment/228783/1 "2007-06-11T15:17:32Z")

</div>

hi, guys !

I have a “XmlParserJogo” class:

```auto

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
