Sha256: bc0f1df7fc3944beb182a32dd61cdeb8a004930a2e3ae0a0f69682d51065edc2

Contents?: true

Size: 809 Bytes

Versions: 2

Compression:

Stored size: 809 Bytes

Contents

package <%= package_name %>
{
	import flash.display.DisplayObjectContainer;

	import org.robotlegs.mvcs.Context;
	import org.robotlegs.base.ContextEvent;

	public class <%= class_name %> extends Context
	{
		public function <%= class_name %>Context(contextView:DisplayObjectContainer=null, autoStartup:Boolean=true)
		{
			super(contextView,autoStartup);
		}

		override public function startup():void
		{
			//Service
			//injector.mapSingleton(YOUR SERVICE);

			//Model
			//injector.mapSingleton(YOUR PROXY);

			//Controller
			//commandMap.mapEvent( YOUR START UP COMMAND, ContextEvent.STARTUP, ContextEvent, true );

			//View
			//mediatorMap.mapView(YOUR VIEW, YOUR MEDIATOR);

			//Dispatch a start up event
			dispatchEvent( new ContextEvent( ContextEvent.STARTUP ) );

			super.startup();
		}
	}
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gator-as3-robotlegs-0.0.3.pre lib/gator/as3/robotlegs/templates/as3/robotlegs/context.as.tt
gator-as3-robotlegs-0.0.2.pre lib/gator/as3/robotlegs/generators/context.as.tt