Controlling Tempo in Flash

OK, I’ve got a question.

What I’d like to do:

  1. Have a bunch of buttons assigned to different sounds.
  2. Click the buttons in a certain order to queue the sounds…
  3. Press play Button to start playing sounds, BUT:
  4. Press the Enter button to end the previous sound, and play the next queued sound.

How would I do this? Here’s what I’m roughly thinking:

  1. Assign each sound to a symbol.
  2. Create an array.
  3. Create a for loop to store each sound into the array.
  4. Make Flash play each sound in the array sequentially when you press enter.

Is this possible? Would my idea work? Is there a better way to do it?

I’m new to Flash/Actionscript, but pretty experienced in C#.