Skip to content

Instantly share code, notes, and snippets.

@shiftregister-vg
Created April 16, 2010 02:19
Show Gist options
  • Save shiftregister-vg/367920 to your computer and use it in GitHub Desktop.
Save shiftregister-vg/367920 to your computer and use it in GitHub Desktop.
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