How to do this.?

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.
			}