home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / Beez.swf / scripts / game / controller / StartupCommand.as < prev   
Encoding:
Text File  |  2008-09-03  |  716 b   |  27 lines

  1. package game.controller
  2. {
  3.    import flash.display.Sprite;
  4.    import game.model.AppProxy;
  5.    import org.puremvc.as3.interfaces.ICommand;
  6.    import org.puremvc.as3.interfaces.INotification;
  7.    import org.puremvc.as3.patterns.command.SimpleCommand;
  8.    
  9.    public class StartupCommand extends SimpleCommand implements ICommand
  10.    {
  11.        
  12.       
  13.       public function StartupCommand()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       override public function execute(note:INotification) : void
  19.       {
  20.          var container:Sprite = note.getBody().container;
  21.          var appProxy:AppProxy = new AppProxy();
  22.          facade.registerProxy(appProxy);
  23.          appProxy.startApp();
  24.       }
  25.    }
  26. }
  27.