Vi metto il codice,forse capirete meglio:
codice:
System.useCodepage = true;
if((tempo2==null)||(getTimer()-tempo2>2000)){
	q = random(999999);
	var percorso = new String("");
	var carica = new LoadVars();
	carica.onLoad = function(success) {
    if(success) {
		if(_root.testo.text !=this["testo"])_root.testo = this["testo"];	 
	}
    else {
        trace("Errore nel caricamento file!");
    }
}
carica.load("chatvis.php?q="+q);
tempo2=getTimer();
}