/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Base PureMVC Project */ package controller { import flash.display.Stage; import org.puremvc.as3.interfaces.ICommand; import org.puremvc.as3.interfaces.INotification; import org.puremvc.as3.patterns.command.SimpleCommand; import ApplicationFacade; import view.StageMediator; /** * Simple StartupCommand for PureMVC Structured Project */ public class StartupCommand extends SimpleCommand implements ICommand { override public function execute( note:INotification ) : void { /** * Get the View Components for the Mediators from the app, * which passed a reference to itself on the notification. */ var stage:Stage = note.getBody() as Stage; facade.registerMediator( new StageMediator( stage ) ); } } }
Comments
