Actionscripting a Menu Transition?

I have made a short animation which stops half way through, and becomes a menu. When someone clicks a button, I want it to play the rest of the animation, and then go to a certain scene, depending on what button was pressed. I’ve tried a couple of small actionscripts, using variables, but I guess my actionscript is a little rusty, and I can’t make it work. Any suggestions? If you just wanna post a link to a previous thread or a tutorial that’s cool.

Thanks in advance.