e invece no
se faccio:
codice:
dati = new LoadVars();
dati.path = this;
dati.onLoad = function(success)
{
    if(success){
        this.path.total = this.total;
		this.path.elapsed = this.elapsed;
		this.path.remaining = this.remaining;
		this.path.title = this.title;
		this.path.kb = this.kb;
		nsfondo = this.nsfondo;
    } else {

    }
};
dati.load("variabili.txt");
colore = new Color(sfondo);
cc = new Object();
colore.setRGB(0x000000);
cc.r = parseInt(nsfondo.substr(0, 2), 16);
cc.g = parseInt(nsfondo.substr(2, 2), 16);
cc.b = parseInt(nsfondo.substr(4, 2), 16);
cc = {rb:cc.r, gb:cc.g, bb:cc.b};
colore.setTransform(cc);
non setta il colore dello sfondo.
se invece faccio:

codice:
dati = new LoadVars();
dati.path = this;
dati.onLoad = function(success)
{
    if(success){
        this.path.total = this.total;
		this.path.elapsed = this.elapsed;
		this.path.remaining = this.remaining;
		this.path.title = this.title;
		this.path.kb = this.kb;
    } else {

    }
};
dati.load("variabili.txt");
nsfondo = "999999";
colore = new Color(sfondo);
cc = new Object();
colore.setRGB(0x000000);
cc.r = parseInt(nsfondo.substr(0, 2), 16);
cc.g = parseInt(nsfondo.substr(2, 2), 16);
cc.b = parseInt(nsfondo.substr(4, 2), 16);
cc = {rb:cc.r, gb:cc.g, bb:cc.b};
colore.setTransform(cc);
funziona