home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / zombietypocalypse.swf / scripts / classes / dispatchers / MouseEventDispatcher.as < prev    next >
Encoding:
Text File  |  2008-09-15  |  710 b   |  28 lines

  1. package classes.dispatchers
  2. {
  3.    import flash.events.EventDispatcher;
  4.    import flash.events.IEventDispatcher;
  5.    
  6.    public class MouseEventDispatcher extends EventDispatcher
  7.    {
  8.       
  9.       public static const BUTTON_PRESSED:String = "ButtonReleased";
  10.        
  11.       
  12.       public function MouseEventDispatcher(param1:IEventDispatcher = null)
  13.       {
  14.          super(param1);
  15.       }
  16.       
  17.       private function onButtonPressed(param1:Object) : void
  18.       {
  19.          dispatchEvent(new MyMouseEvent(MouseEventDispatcher.BUTTON_PRESSED,param1));
  20.       }
  21.       
  22.       public function buttonPressed(param1:Object) : void
  23.       {
  24.          this.onButtonPressed(param1);
  25.       }
  26.    }
  27. }
  28.