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

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