Sequencing Actions with Actionscript?

I’m working on a site where I’m using an onRelease event handler.

Within the onrelease I have a couple different actions that need to happen. For example, when I click on a button I want an image to move up, then move to the right and then call gotoAndPlay (frame)

I can do all of these actions, but they all happen at once. Basically I just want the animation to happen first and then have it goto frame 20 when the animation is complete…

Anyone have any ideas on this?

thanks in advance…