Sha256: 6d8ee2fcb76647881b44dcc41d9f0fafb3d7eb4305d1f869c8ca9b51555b0165

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

package <%= base_package %>.controllers.event
{

	import flash.events.*;
	
	public class ResourceEvent extends Event {
		
		// can be null, success, or failure.
		public var result:String;
		
		// can be list, open, create, upload, destroy... etc or null
		public var action:String;
		
		public var data:*; // RxModel

		public function ResourceEvent(type:String, bubbles:Boolean = false)
	    {
			action = type;
	        super(type, bubbles);
	    }

		override public function clone():Event
	    {
	        return new ResourceEvent(type, bubbles);
	    }
	}
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/app/flex/application/controllers/event/ResourceEvent.as
emergent-core-0.1.01 rails_generators/emergent_config/templates/app/flex/application/controllers/event/ResourceEvent.as
emergent-core-0.1.02 rails_generators/emergent_config/templates/app/flex/application/controllers/event/ResourceEvent.as