It seems that there is some kind of limit to how many sounds can be played at once (or maybe a limit to instances of one sound). Is this true? Here is my code, maybe there is some other problem with it. It plays about 8 notes then just stops and won’t play anymore.
onClipEvent(enterFrame){
if(_root.axiom[t]=='e'){
this['note'+t]=new Sound();
this['note'+t].attachSound('enote');
this['note'+t].start();
} else if(_root.axiom[t]=='g'){
this['note'+t]=new Sound();
this['note'+t].attachSound('gnote');
this['note'+t].start();
} else if(_root.axiom[t]=='a'){
this['note'+t]=new Sound();
this['note'+t].attachSound('anote');
this['note'+t].start();
} else if(_root.axiom[t]=='b'){
this['note'+t]=new Sound();
this['note'+t].attachSound('bnote');
this['note'+t].start();
} else if(_root.axiom[t]=='c'){
this['note'+t]=new Sound();
this['note'+t].attachSound('cnote');
this['note'+t].start();
} else if(_root.axiom[t]=='d'){
this['note'+t]=new Sound();
this['note'+t].attachSound('dnote');
this['note'+t].start();
}
t++;
}
I have defined t, all of the notes, and axiom so thats not the problem.
if anyone can help it would be greatly appreciated.