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);
}
}