home *** CD-ROM | disk | FTP | other *** search
- package com.althea.client.shufflr.controller
- {
- import com.althea.client.shufflr.*;
- import com.althea.client.shufflr.model.*;
- import mx.collections.ArrayCollection;
- import org.puremvc.as3.multicore.interfaces.*;
- import org.puremvc.as3.multicore.patterns.command.*;
- import org.puremvc.as3.multicore.patterns.observer.*;
-
- public class GetDataCommand extends SimpleCommand
- {
- public function GetDataCommand()
- {
- super();
- }
-
- override public function execute(param1:INotification) : void
- {
- var _loc4_:String = null;
- var _loc5_:ArrayCollection = null;
- var _loc6_:String = null;
- var _loc7_:ShuffleFeedProxy = null;
- var _loc2_:Object = Object(param1.getBody());
- if(_loc2_.view != null && _loc2_.view != "homeView")
- {
- sendNotification(ApplicationFacade.CHANGE_MODE,_loc2_.view,_loc2_.dataType);
- sendNotification(ApplicationFacade.SHOW_PRELOADER);
- }
- if(_loc2_.name == "myzone")
- {
- sendNotification(ApplicationFacade.LOAD_MYZONE);
- return;
- }
- var _loc3_:NavMapProxy = facade.retrieveProxy(NavMapProxy.NAME) as NavMapProxy;
- if(Boolean(_loc2_.link) && _loc2_.link != "")
- {
- _loc4_ = _loc2_.link;
- }
- else if(_loc2_.notification)
- {
- sendNotification(_loc2_.notification);
- return;
- }
- if(_loc4_ == null || _loc4_ == "")
- {
- return;
- }
- if(_loc4_.indexOf("navmap") == 0)
- {
- _loc5_ = _loc3_.loadMenuData(_loc4_);
- _loc6_ = _loc2_.dataType;
- sendNotification(_loc6_,_loc5_);
- }
- else
- {
- _loc7_ = facade.retrieveProxy(ShuffleFeedProxy.NAME) as ShuffleFeedProxy;
- _loc7_.loadData(_loc2_,_loc2_.dataType);
- }
- }
- }
- }
-
-