# How to do this.?

**URL:** <https://forum.kirupa.com/t/how-to-do-this/311109>\
**Category:** Uncategorized\
**Created:** [June 28, 2010, 8:24am UTC](https://forum.kirupa.com/t/how-to-do-this/311109 "2010-06-28T08:24:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![punk123123123](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@punk123123123](https://forum.kirupa.com/u/punk123123123)\
**Post date:** [June 28, 2010, 8:24am UTC](https://forum.kirupa.com/t/how-to-do-this/311109/1 "2010-06-28T08:24:49Z")

</div>

currently i have this problem…i wan my timer to stop at time 0 but i was unable to do it…it keep going down whatever code i imply or change.

Then after i change to gotoAndstop, it does not go to that frame but instead there is a mixture of frame 1 frame 2 and frame 3…help someone…and someone please explain in detail.thank you.

```
var counts:Number = 11;
			var myTimer:Timer = new Timer(1000,count);
			myTimer.addEventListener(TimerEvent.TIMER, countdown);
			myTimer.start();
			function countdown(event:TimerEvent):void 
			{
			txtTimer.text ="Time Left: " + String((counts)-myTimer.currentCount + "s");
			}

			if(txtTimer.text == "0")
			{trace("12312");
//gotoAndStop(2) 
			
			}
			else
			{
				//dosomething else.
			}
```
