Health bar

I need help with my health bar in a game i’m making, I want to make it so that when your health reaches 0 the movie goes to a frame that has all the play again junk on it, but it doesn’t work. Any suggestions? here is the code I’m working with:
your_health = 100
_root.Health = your_health
if (your_health == 0) {
gotoAndStop (10);