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

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