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