Code reset

My current project is a short game.

Objects are tweened with Tween Lite from the right to the left and the player has to mouse over them to destroy them. When the player’s health gets to 0, the tweens stop and a fail screen pops up where a “retry” button is displayed.

Currently the retry button says “gotoAndPlay(1);”… but this doesn’t work. When clicking it, Flash does go back to frame 1, but the game doesn’t run through like it does the first time. The tweens are still paused and the player’s health is still at 0.

How would I go about resetting the code so it can be played through again in the same way as the first time?

Hope you can help, and thanks in advance!