Flash as2(cs3)

SORRY! I ACCIDENTALLY PUT THE WRONG TITLE FOR THREAD.
real title: flash as2(cs3) variable to frame prob.

hi guys! im having a little trouble with my flash project.

heres the thing, im trying to add heart symbols as lives for my game

so im my scene1 i got a layer for variables and i declared:

life=3;

and then on another layer i created a movie clip where inside i got 3 frames.

first frame got nothing to show since i put it on alpha 0.

but i put this code to the first frame.

stop();    if (_root.life == 3) {
          gotoAndStop("3up");
     }     
    if (_root.life == 2) {
          gotoAndStop("2up");
     }    

where in 3up and 2up are frames 2 and 3.

here is when i change the value of the variable life which is on a button.


on(press)
{
              _root.life--; 
    }

i dont have any errors on compilation and i just cant see why it wont go to the 2up frame whenever i decrement 1 from life.