home *** CD-ROM | disk | FTP | other *** search
- package game.controller
- {
- import game.view.AppMediator;
- import game.view.InstructionsMediator;
- import game.view.components.InstructionsView;
- import org.puremvc.as3.interfaces.ICommand;
- import org.puremvc.as3.interfaces.INotification;
- import org.puremvc.as3.patterns.command.SimpleCommand;
-
- public class InstructionsShowCommand extends SimpleCommand implements ICommand
- {
-
-
- public function InstructionsShowCommand()
- {
- super();
- }
-
- override public function execute(note:INotification) : void
- {
- var appMed:AppMediator = facade.retrieveMediator(AppMediator.NAME) as AppMediator;
- var instructionsView:InstructionsView = new InstructionsView();
- appMed.getViewContainer().addChild(instructionsView);
- var instructionsMed:InstructionsMediator = new InstructionsMediator(instructionsView);
- facade.registerMediator(instructionsMed);
- }
- }
- }
-