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