XML loader

I’m trying to create a loader for an xml-using flash.
Actually, I’m pretty much trying to implement the code found here on kirupa (http://www.kirupa.com/web/xml/XMLwithFlash4.htm).

I changed:
target.getBytesLoaded()
target.getBytesTotal()
to:
this.target.getBytesLoaded()
this.target.getBytesLoade()

When i do trace(this.target.getBytesLoaded()+"_"+this.target.getBytesTotal());
I get the following returns:
0_undefined (lines 1-2)
0_0 (lines 3-34)
57337_0 (line 35)
146419_146419 (lines 35+)

It’s strange to see that BytesLoaded is even larger than BytesTotal until line 36.
I’ve just put the code in the same frame of the same layer in the same scene as the xml loader, is that correct?
What happens is that the loader isn’t drawn until all of the XML has been fetched (line 36).

Any help would be greatly appriciated!
/dalle