Creating sound object with loop

hei.
I’m building a web flash 8 app with an animated nurse that talks and help the user in different events. the voices sit in a external folder and i load them using load sound method.
It works fine as a desktop app, but when testing the movie on slow download (DSL 32 KB/s) I realized that i must load all the sound before i can play the animation.

problem nr.1:
How do i create folowing sound objects (voice_0, voice_1, voice_2…) using a loop?

I’ve tried this, but it doesn’t work

[COLOR=“DimGray”]for (i=0;i<numVoices;i++)
{
var this[“voice_”+i]:Sound=new Sound;
}[/COLOR]

It says: Identifier expected ???

problem num.2:
let’s say i declared and instansiated the sound variable outside the loop.
trying to build a loop to load them and get onLoad event (on the same loop) doesn’t seemed work for me:
[COLOR=“rgb(105, 105, 105)”]this.loadAllVoices = function() {
for (i=0; i<numVoices; i++) {
this[“voice_”+i].onLoad = function(success:Boolean):Void {
if (success) {
trace(“success: “+i);
trace(helpVoice1+“Loaded”);
}
this[“voice_”+i].loadSound(“voice/”+“English”+”/”+_parent.userMenuNode.childNodes[3].childNodes*.firstChild.nodeValue+".mp3", false);
};
}
};[/COLOR]

Does anyone know :slight_smile: ?