Sha256: 3dd4b7692a896dc85cacc5994f9fa4d7700c207874b5cf05248de32b0d2f65fb

Contents?: true

Size: 984 Bytes

Versions: 2

Compression:

Stored size: 984 Bytes

Contents

package <%= base_package %>.models.presentation {
	
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	
	import <%= base_package %>.models.constant.Resource;
	import <%= base_package %>.models.presentation.ResourceModel;
	import <%= base_package %>.models.domain.Content;
	import <%= base_package %>.models.domain.ContentAssignment;
	import <%= base_package %>.models.domain.AssetAssignment;
	
	import org.restfulx.utils.RxFileReference;
	
	// Pages and components should extend this
	public class MainModel extends ContentModel {
		
		[Bindable] public var login:Boolean;
		[Bindable] public var logout:Boolean;
		
		private var _cmsMode:Boolean;
		/** This property is injected by the application. */
		public function set cmsMode(value:Boolean):void {
			_cmsMode = value;
			
			dispatchEvent(new Event("cmsModeChanged"));
		}
		
		[Bindable] public var gotoProfile:Boolean;
		
		[Bindable] public var gotoAccount:Boolean;
		
		public function MainModel() {
		}
	}	
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/app/flex/application/models/presentation/MainModel.as
emergent-core-0.1.01 rails_generators/emergent_config/templates/app/flex/application/models/presentation/MainModel.as