Yeah definately an array, use this simple routine
ActionScript Code:
//default variables
function resetKeySave(){
if (keyArray.length > 0){
delete keyArray
}
keyArray = new Array()
keyCurrent = 0
}
function saveKey(keyNum){
keyArray.push(keyNum)
}
function playNextKey(){
return keyArray[keyCurrent]
ketCurrent++
}
//dunno how you are making the sounds, but just adapt this
function makeSound(){
this["sound" + playNextKey()].play()
}
resetKeySave()
when you make a sound call saveKey(), sending the number of the sound you are playing, when you want to play the sounds, set up a routine to call playNextKey.
you could send the name of the sound, rather than just a number to reference it, and tell make sound to play that as well.
hope that works??
cheers