# How to end game and stop timer

**URL:** <https://forum.kirupa.com/t/how-to-end-game-and-stop-timer/286507>\
**Category:** Uncategorized\
**Created:** [April 16, 2009, 1:13pm UTC](https://forum.kirupa.com/t/how-to-end-game-and-stop-timer/286507 "2009-04-16T13:13:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashstudent](https://avatars.discourse-cdn.com/v4/letter/f/eb8c5e/32.png) [@flashstudent](https://forum.kirupa.com/u/flashstudent)\
**Post date:** [April 16, 2009, 1:13pm UTC](https://forum.kirupa.com/t/how-to-end-game-and-stop-timer/286507/1 "2009-04-16T13:13:22Z")

</div>

I made a small dodge ball game, where 3 balls are bouncing of the horizontal walls of a rectangle and a character in the middle dodges them by going up or down. I also have a simple timer that counts time in seconds.  
I am trying to use the hitTest function to end the game and stop the timer when a ball hits my character but I have not been able to do it successfully.  
Will appreciate all help and comments.

I am using Flash MX
