Created
April 16, 2010 02:19
-
-
Save shiftregister-vg/367920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.lintpanzer.managers | |
{ | |
import com.asfusion.mate.events.Dispatcher; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; | |
public class ManagerBase extends EventDispatcher | |
{ | |
protected var dispatcher:Dispatcher = new Dispatcher(); | |
public function ManagerBase(target:IEventDispatcher=null) | |
{ | |
super(target); | |
} | |
override public function dispatchEvent(event:Event):Boolean{ | |
return super.dispatchEvent(event) && dispatcher.dispatchEvent(event); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment