Sha256: b43275094a07400b4d4403c758b0f36bf7eb82302a1d6cb04f7061e962df97b7

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

package org.rsos.openbill.command
{
	/* add to controller
	addCommand( FpEvent.EVENT_FP, FpCommand );
	*/
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.controls.Alert;
	import mx.core.Application;
	import mx.rpc.IResponder;
	import mx.rpc.events.FaultEvent;
	
	import org.rsos.openbill.business.RailsDelegate;
	import org.rsos.openbill.event.FpEvent;
	import org.rsos.openbill.model.OpenbillModelLocator;
	import org.rsos.openbill.vo.UserVO;

	public class FpCommand implements ICommand, IResponder
	{
		public function execute(event:CairngormEvent):void
		{
		    var delegate : RailsDelegate = new RailsDelegate( this )
		 
		    delegate.fp(FpEvent(event).data)

		}
		
		public function result(data:Object):void
		{
			var model : OpenbillModelLocator = OpenbillModelLocator.getInstance();
			model.userVO = new UserVO();
			model.askforlogin(Application.application);
			Alert.show( "Password has been reset and instructions sent." );
		}
		
		public function fault(info:Object):void
		{
			var faultEvent :FaultEvent = FaultEvent( info );
			Alert.show( "fault at fp" );
		}
		
	}
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 src/org/rsos/openbill/command/FpCommand.as
smukherjee-openbill-0.1.6 src/org/rsos/openbill/command/FpCommand.as
smukherjee-openbill-0.1.7 src/org/rsos/openbill/command/FpCommand.as
openbill-0.1.5 src/org/rsos/openbill/command/FpCommand.as
openbill-0.1.6 src/org/rsos/openbill/command/FpCommand.as