Keeping score and detecting lives

alright you are all probably tired of answering my questions,but

im trying to create a dynamic text box so when there is a hit

collision between my two objects. say a ball and another ball a life

is deducted from the life text box. and at 0 lives you goto the 2nd

frame.

thanks for all the help

[AS]
onClipEvent(enterFrame){
if(this.hitTest(_root.ball2)){
_root.life = _root.life - 1;
}
if(_root.life == 0){
gotoAndStop(2)
}
}
[/AS]

yes thanks i just have one problem.

when (well in my case a ball hits the rectangle and the score just

keeps going down.

i want it to play from the beginning but with one life less, and

when zero lives left play()2.

do you think you can tell me whats rong, and if you dont

understand i will try saying in easier

o wate if you want i can attach the file and put it on a new thread!