home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / com / althea / client / shufflr / controller / AssociatedCommand.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  1.0 KB  |  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.    
  8.    public class AssociatedCommand extends SimpleCommand
  9.    {
  10.       public function AssociatedCommand()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       override public function execute(param1:INotification) : void
  16.       {
  17.          var _loc2_:ShuffleFeedProxy = facade.retrieveProxy(ShuffleFeedProxy.NAME) as ShuffleFeedProxy;
  18.          var _loc3_:Object = new Object();
  19.          var _loc4_:String = param1.getName();
  20.          var _loc5_:Object = param1.getBody();
  21.          switch(_loc4_)
  22.          {
  23.             case ApplicationFacade.GET_ASSOCIATED_VIDEOS:
  24.                _loc3_.title = "AssociatedVideos";
  25.                _loc3_.link = _loc5_.link;
  26.                _loc3_.dataType = "loadassociatedvideos";
  27.                _loc2_.loadData(_loc3_,_loc3_.dataType);
  28.          }
  29.       }
  30.    }
  31. }
  32.  
  33.