DisplayModul class

**************************************************************************
Joachim Schnier (Flashscript.biz)
class DisplayModul (Event pattern)
*****************************************************************************/
package 
{
	import fl.controls.Label;
	import flash.utils.Timer;
	import flash.events.Event;
	import flash.events.TimerEvent;
	public class DisplayModul extends AbstractClass
	{
		private var myLabel:Label;
		public function DisplayModul ():void
/*
* We add a label component.
*/
			myLabel = new Label();
			myLabel.setSize(125,22);
			myLabel.textField.autoSize = "center";
			myLabel.textField.background = true;
			myLabel.textField.backgroundColor = 0xF1F1F1;
			myLabel.htmlText = "Start counting now!";
			addChild(myLabel);
/*
* We add an eventlistener for myObject, which notifies when a message
* had been sent. We can then display the message using the getter get_Message ().
*/
			myObject.addEventListener(SENDMESSAGE, processEvent);
		}
		private function processEvent(event:Event):void
		{
			myLabel.htmlText = "Counter: "+ Message +"";;
		}
	}
}