OK I've got an animated drop down menu and instead of doing this the noob way I'm trying to use actionscript. Now when the menu retracts I want it when you mouse over to go to the frame corresponding to the same place on when the menu is coming out (if that makes any sense).

There are 30 frames in the menu animation, 1-15 are dropping down, 16-30 are coming back. When you mouse out it starts retracting if you mouse back over at 27 it should go to frame 3 and play. here's my code :

Code:
frame = Math.abs(30 - _currentframe)

hitarea.onRollOver = function () {
     trace(frame)
     gotoAndPlay(frame)
}
that is in a keyframe at frame 16 there is a stop on frame 15. Is the problem in the math? cause it just out puts 14 every time and goes to and plays 14 no matter when I roll over

thanks in advance