home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2011 May / ME_2011_05.iso / Galileo-Video-Tutorial / system / player.swf / scripts / controller / UpdateTrainerInfoCommand.as < prev    next >
Encoding:
Text File  |  2010-11-30  |  664 b   |  28 lines

  1. package controller
  2. {
  3.    import com.je.events.UpdateEvent;
  4.    import com.je.model.ApplicationModel;
  5.    import com.je.model.vo.TrainerInfo;
  6.    import org.robotlegs.mvcs.Command;
  7.    
  8.    public class UpdateTrainerInfoCommand extends Command
  9.    {
  10.       [Inject]
  11.       public var applicationModel:ApplicationModel;
  12.       
  13.       [Inject]
  14.       public var updateEvent:UpdateEvent;
  15.       
  16.       public function UpdateTrainerInfoCommand()
  17.       {
  18.          super();
  19.       }
  20.       
  21.       override public function execute() : void
  22.       {
  23.          this.applicationModel.updateTrainerInfo(this.updateEvent.updateValue as TrainerInfo);
  24.       }
  25.    }
  26. }
  27.  
  28.