Help with rhythm game

Hi, i have just made a rhythm game in actionscript 2 by following this tutorial
http://www.mrsunstudios.com/2008/08/tutorial-make-a-rhythm-game-in-as2/.
However, the guide does not explain how to ‘align’ the music with the arrows, like in games like guitar hero etc.
I have looked at some other tutorials but they all attach the arrows frame by frame according to the music. None of them do it dynamically.
So, i am hoping that some1 could help me with this problem
Thanks in advance:hugegrin: