Scripting problem

Hi,

Could anyone translate this into actionscript…for the life of me I cant get it!

If in the movie “mymovie” the frame “myframe” is reached, go to the frame “new frame”

I have tried a few things but think i’m barking up the wrong tree:

If (mymovie._currentFrame = mymovie(“myframe”)){
mymovie.gotoAndStop(“newframe”);
}

If anyone could help I would be very grateful.
J_Mo