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

  1. package com.althea.client.shufflr.controller
  2. {
  3.    import com.althea.client.shufflr.ApplicationFacade;
  4.    import com.althea.client.shufflr.model.SourceSiteProxy;
  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 SourceSiteCommand extends SimpleCommand implements ICommand
  10.    {
  11.       public function SourceSiteCommand()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       override public function execute(param1:INotification) : void
  17.       {
  18.          var _loc2_:String = param1.getName();
  19.          switch(_loc2_)
  20.          {
  21.             case ApplicationFacade.READ_SOURCE_SITE:
  22.                this.proxy.getSourceSiteTitle();
  23.          }
  24.       }
  25.       
  26.       private function get proxy() : SourceSiteProxy
  27.       {
  28.          return this.facade.retrieveProxy(SourceSiteProxy.NAME) as SourceSiteProxy;
  29.       }
  30.    }
  31. }
  32.  
  33.