 		
 		public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
 		{
+			if (listeners==null){
+				return ;
+			}
 			var funcs:Array = listeners[type];
 			if (funcs)
 			{

		
		public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
		{
			var funcs:Array = listeners[type] = listeners[type] || [];
			var i:Object = funcs.indexOf(listener);
			if (i != -1)

		
		private function dispatchEventFunction(event:Event):Boolean
		{
			if (listeners==null){
				return false;
			}
			event.target = this;
			event.currentTarget = this;
			var funcs:Array = listeners[event.type];
