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

  1. package com.althea.client.shufflr.controller
  2. {
  3.    import com.althea.client.shufflr.*;
  4.    import com.althea.client.shufflr.model.*;
  5.    import org.puremvc.as3.multicore.interfaces.*;
  6.    import org.puremvc.as3.multicore.patterns.command.*;
  7.    import org.puremvc.as3.multicore.patterns.observer.*;
  8.    
  9.    public class HomeViewCommand extends SimpleCommand
  10.    {
  11.       public function HomeViewCommand()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       override public function execute(param1:INotification) : void
  17.       {
  18.          var _loc4_:Object = null;
  19.          var _loc2_:String = param1.getName();
  20.          var _loc3_:Object = param1.getBody();
  21.          switch(_loc2_)
  22.          {
  23.             case ApplicationFacade.SHOW_HOME_VIEW:
  24.                _loc4_ = new Object();
  25.                _loc4_.str1 = "Home";
  26.                sendNotification(ApplicationFacade.CHANGE_MODE,"homeView");
  27.                sendNotification(ApplicationFacade.SET_VIEW_NAME,_loc4_);
  28.          }
  29.       }
  30.    }
  31. }
  32.  
  33.