Per forza, tu hai impostato come oggetto target del sendAndLoad "obj", quindi l'onLoad di "lv" non avviene

Prova ad esempio così

function connetti(){

var lv = new LoadVars();
var obj = new LoadVars();

obj.onLoad = function(success){
if( (success) ){
_root.main.htmlText += this.username+' connesso!';
}else{
_root.main.htmlText += 'errore';
}

};

lv.username = 'bla';
lv.sendAndLoad('connect.php',obj);

}

Dovrebbe funzionare