PDA

View Full Version : Basic and complex questions


dirtyprincess
06-05-2008, 10:40 AM
Even though there are 3 questions, everyone with a single answer is really welcome!

1 When a sound is loaded in to a flash movie, were is it stored during runtime?

2 I've seen it is possible to create a MC with predefined number of frames, is it possible to attach different sounds, and events to every single frame in this dinamically generated MC?

3 Is there a way to load multiple sounds by using an array and a loop?
I can't find a way to declare several sound objects with a loop like this:

var n:number = 0;
for(a=0;a<MyArray.length;a++){
var the_dinamically_generated_name:Sound = new sound();
}

Damaskal
06-05-2008, 11:35 AM
1: stored? RAM maybe :)
2: everything is possible :)
3:

var MyArray:Array = new Array();

for(a=0;a<n_of_sounds;a++){
MyArray[i]= new Sound();
}


i wrote the as here and didnt test it.. but the idea is clear..