home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / com / althea / client / shufflr / controller / AuthenticateCommand.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  967 b   |  29 lines

  1. package com.althea.client.shufflr.controller
  2. {
  3.    import com.althea.client.shufflr.model.UserProxy;
  4.    import com.althea.client.shufflr.model.vo.AuthenticationDescriptor;
  5.    import org.puremvc.as3.multicore.interfaces.ICommand;
  6.    import org.puremvc.as3.multicore.interfaces.INotification;
  7.    import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
  8.    
  9.    public class AuthenticateCommand extends SimpleCommand implements ICommand
  10.    {
  11.       public function AuthenticateCommand()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       override public function execute(param1:INotification) : void
  17.       {
  18.          var _loc2_:AuthenticationDescriptor = param1.getBody() as AuthenticationDescriptor;
  19.          this.proxy.authenticate(_loc2_.username,_loc2_.password,_loc2_.version);
  20.       }
  21.       
  22.       private function get proxy() : UserProxy
  23.       {
  24.          return this.facade.retrieveProxy(UserProxy.NAME) as UserProxy;
  25.       }
  26.    }
  27. }
  28.  
  29.