       cancelButton = createButton("Cancel", stage.stageWidth - 100 * contentsScaleFactor, top1);
       codeButton = createButton("By Code", 0, top2);
       badgeButton = createButton("Clear Badge", stage.stageWidth - 100 * contentsScaleFactor, top2);
+      clearButton = createButton("Clear", 0, int(stage.stageHeight / 2) - 30 * contentsScaleFactor);
 
       addChild(postButton);
       addChild(cancelButton);
       addChild(codeButton);
       addChild(badgeButton);
+      addChild(clearButton);
 
       notificationTF = createTextField(0, int(stage.stageHeight / 2),
          stage.stageWidth - 1, int(stage.stageHeight / 2) - 1);

    private var cancelButton:SimpleButton;
    private var codeButton:SimpleButton;
    private var badgeButton:SimpleButton;
    private var notificationTF:TextField;
    private var contentsScaleFactor:int = 2;


    private function printMessage(message:String, title:String = null):void {
      notificationTF.text += "-----\n" + (title? title + "\n" : "") + message + "\n";
      notificationTF.scrollV = notificationTF.maxScrollV;
    }

    private function clearMessages():void {
      notificationTF.text = "";
    }

    private function registerEvents():void {
