Sha256: a7d227d5baff3df97067d5d59c897591539ba6ae7c63df2f4adb53e3817a8e23
Contents?: true
Size: 1.29 KB
Versions: 5
Compression:
Stored size: 1.29 KB
Contents
package <%= class_name.downcase.gsub('::','.') %>.command { /* add to controller addCommand( <%= actions.first.camelcase %>Event.EVENT_<%= actions.first.underscore.upcase %>, <%= actions.first.camelcase %>Command ); */ import com.adobe.cairngorm.control.CairngormEvent; import com.adobe.cairngorm.commands.ICommand; import <%= class_name.downcase.gsub('::','.') %>.model.<%= file_name.camelcase %>ModelLocator; import <%= class_name.downcase.gsub('::','.') %>.business.<%= actions[1].camelcase %>Delegate; import <%= class_name.downcase.gsub('::','.') %>.control.<%= actions.first.camelcase %>Event; import mx.controls.Alert; import mx.rpc.IResponder; import mx.rpc.events.FaultEvent; public class <%= actions.first.camelcase %>Command implements ICommand, IResponder { public function execute(event:CairngormEvent):void { var delegate : <%= actions[1].camelcase %>Delegate = new <%= actions[1].camelcase %>Delegate( this ) delegate.<%= actions.first %>(<%= actions.first.camelcase %>Event(event).data) } public function result(data:Object):void { // <%= file_name.camelcase %>ModelLocator.getInstance() } public function fault(info:Object):void { var faultEvent :FaultEvent = FaultEvent( info ) Alert.show( "fault at <%= actions.first %>" ) } } }
Version data entries
5 entries across 5 versions & 2 rubygems