home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / com / althea / client / shufflr / controller / ViewPrepCommand.as < prev   
Encoding:
Text File  |  2010-06-23  |  1.3 KB  |  33 lines

  1. package com.althea.client.shufflr.controller
  2. {
  3.    import com.althea.client.shufflr.ApplicationFacade;
  4.    import com.althea.client.shufflr.model.HelloWorldProxy;
  5.    import com.althea.client.shufflr.model.NavMapProxy;
  6.    import com.althea.client.shufflr.model.PlayerConfProxy;
  7.    import com.althea.client.shufflr.view.ApplicationMediator;
  8.    import org.puremvc.as3.multicore.interfaces.INotification;
  9.    import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
  10.    
  11.    public class ViewPrepCommand extends SimpleCommand
  12.    {
  13.       public function ViewPrepCommand()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       override public function execute(param1:INotification) : void
  19.       {
  20.          var _loc2_:Object = param1.getBody();
  21.          facade.registerMediator(new ApplicationMediator(param1.getBody() as ShufflrClient));
  22.          var _loc3_:HelloWorldProxy = facade.retrieveProxy(HelloWorldProxy.NAME) as HelloWorldProxy;
  23.          _loc3_.helloWorld();
  24.          var _loc4_:NavMapProxy = facade.retrieveProxy(NavMapProxy.NAME) as NavMapProxy;
  25.          _loc4_.loadNavMapData();
  26.          var _loc5_:PlayerConfProxy = facade.retrieveProxy(PlayerConfProxy.NAME) as PlayerConfProxy;
  27.          _loc5_.getPlayerConf();
  28.          this.sendNotification(ApplicationFacade.CHECK_USER_LOGIN);
  29.       }
  30.    }
  31. }
  32.  
  33.