AddModule class

**************************************************************************
Joachim Schnier (Flashscript.biz)
class AddModul (Event pattern)
*****************************************************************************/
package 
{
	import fl.controls.Button;
	import flash.events.MouseEvent;
	public class AddModul extends AbstractClass
	{
		private var addBut:Button;
		public function AddModul ():void
		{
			addBut = new Button();
			addBut.label = "ADD";
			addChild(addBut);
			addBut.addEventListener(MouseEvent.CLICK, addHandler);
		}
		private function addHandler (event:MouseEvent):void
		{
			counter++;
			Message = (String(counter));
		}
	}
}