# Load all values volume from a texte file to a Array

**URL:** <https://forum.kirupa.com/t/load-all-values-volume-from-a-texte-file-to-a-array/20560>\
**Category:** flash\
**Created:** [May 10, 2003, 10:24am UTC](https://forum.kirupa.com/t/load-all-values-volume-from-a-texte-file-to-a-array/20560 "2003-05-10T10:24:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![odysse\_1](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@odysse\_1](https://forum.kirupa.com/u/odysse_1)\
**Post date:** [May 10, 2003, 10:24am UTC](https://forum.kirupa.com/t/load-all-values-volume-from-a-texte-file-to-a-array/20560/1 "2003-05-10T10:24:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2003, 11:23am UTC](https://forum.kirupa.com/t/load-all-values-volume-from-a-texte-file-to-a-array/20560/2 "2003-05-10T11:23:26Z")

</div>

oh!! after seeing the .txt everything makes sense now. 😛

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

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2003, 12:18pm UTC](https://forum.kirupa.com/t/load-all-values-volume-from-a-texte-file-to-a-array/20560/3 "2003-05-10T12:18:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2003, 12:20pm UTC](https://forum.kirupa.com/t/load-all-values-volume-from-a-texte-file-to-a-array/20560/4 "2003-05-10T12:20:47Z")

</div>

no problem. =)
