Code for "Restart_btn" to play again

Hi,

The following code is okay (Without “Restart_btn”. But I would like to add a button to play the animation again. How to do that? Please guide me.
The Code in Blue works fine. Just required code for the red one.
[COLOR=#0000ff]var str:String = “Demonstration text is used here.”;[/COLOR]
[COLOR=#0000ff]var myTimer:Timer = new Timer(1, str.length);
myTimer.addEventListener(“timer”, writeIt);
myTimer.start();
var count:Number = 0;[/COLOR]
[COLOR=#0000ff]function writeIt(event:TimerEvent):void {
theText.text = str.substring(0,count);
count++;
if (count > str.length) {
myTimer.removeEventListener(“timer”,writeIt);
}
}
[/COLOR]
[COLOR=#ff0000]Restart_btn.addEventListener(MouseEvent.CLICK, clickRestart);[/COLOR]
[COLOR=#ff0000]function clickRestart(event:MouseEvent) { gotoAndPlay(1); }

[/COLOR]Thanks.