Class and nightmare

I working on a class i i have a hard time calling a function that is inside my class from a other function in the class

Here the code
[AS]
class profil {
public var address:String ;
/* initialisation de la class*/
public function profil(type:String) {
}
/* mecanique*/
public function loadProfil(no_sercuriteParam:String) {
no_sercuriteParam = “9b6db24710fe”;
var profilXml:XML = new XML();
address = address+no_sercuriteParam;
profilXml.load(address);
profilXml.ignoreWhite = true;
profilXml.onLoad = function(success) {
if (success) {
var i:Number = 0;
while (profilXml.childNodes[0].childNodes[0].childNodes*.nodeName) {
//trace(profilXml.childNodes[0].childNodes[0].childNodes*.nodeName+"=>"+profilXml.childNodes[0].childNodes[0].childNodes*.firstChild.nodeValue);
this[profilXml.childNodes[0].childNodes[0].childNodes*.nodeName] = profilXml.childNodes[0].childNodes[0].childNodes*.firstChild.nodeValue;
++i
}
fillfields() // <------------- here is my proble
//_root.gotoAndStop(“showProfil”);
}
};

}
public function fillfields() {
trace(“start”);
var fieldsAsscFromPhp:Array = new Array(“sexe”, “nom”, “prenom”, “courriel”, “courriel”, “compagnie”, “titre”, “ville”, “province”, “pays”, “age”);
var fieldsAsscFromFlash:Array = new Array(“salutation_txt”, “nom_txt”, “prenom_txt”, “courriel_txt”, “confirm_courr_txt”, “compagnie_txt”, “titre_txt”, “ville_txt”, “province_txt”, “pays_txt”, “age_txt”);
// arrete la fonction si le nombre de champs ne corespond pas
if (fieldsAsscFromPhp.length != fieldsAsscFromFlash.length) {
return trace("Verifiez les Array ‘fieldsAsscFromPhp’ et ‘fieldsAsscFromFlash’ pour etre sur qu’elles contienne le meme nombres de champs ");
}

trace(fieldsAsscFromPhp);
var totalChamps:Number = fieldsAsscFromPhp.length;
trace(totalChamps);
for (var i = 0; i<=totalChamps; ++i) {
trace(“allo”);
trace(this[fieldsAsscFromPhp*]);
_root[fieldsAsscFromFlash*].text = this[fieldsAsscFromPhp*];
}
return true;
}
}
[/AS]

If i call [AS]fillfields([/AS] from insde the [AS]profilXml.onLoad[/AS] it does’nt work but if i put it juste after it work fin but my data are not loaded. I know that the xml is lodding perfectly.

Thanks for your help !!!
:jail:
francis
http://www.mediaflexdesign.com