Load all values volume from a texte file to a Array

The full code that i want to use, someone can figure out ?
Here is the full code that i want to use.
it is for synchronise a mouth with the value of sound ( in level)
that doesn’t work as indicated below.

onClipEvent (load) {
_global.testLoad = new Array()
gStartFrame = _root._currentFrame;
_global.valueSon = new LoadVars();
valueSon.load(“value.txt”);
valueSon.onLoad = function (etat) {
if (etat) {testLoad.push(this.contenu);
}
trace(testLoad) //working
}
trace(testLoad) //doens’t work
}

onClipEvent (enterFrame) {
gFrame = _root._currentframe-gStartFrame;
gAmp = testLoad[gFrame]; // <= here it doesn’t work
trace(testLoad); //here is work but not above gAmp
with (_root.mellisa.mouth) {
gotoAndStop(gAmp+1);
}
}

oh!! after seeing the .txt everything makes sense now. :stuck_out_tongue:

see the attached file and you’ll learn how to add those values to the array. :wink:

ps. there’s no need to start a new thread on the same subject. :-\

It 's true about the new thread,
it was just to make myself more clear.
anyway,
i thanks you very much.

no problem. =)