Revision: 6164
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 2, 2008 00:27 by wintondeshong
Initial Code
/**
* 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 ) );
}
}
}
Initial URL
Initial Description
Initial Title
PureMVC StartupCommand Class Template
Initial Tags
textmate
Initial Language
Other