/* SwitchAppViewEvent.as */ /* need to implement this later as a possible way to control initialization */ package gov.va.med.edp.control { import flash.events.Event; import com.adobe.cairngorm.control.CairngormEvent; public class SwitchAppViewEvent extends CairngormEvent { public static const EVENT_SWITCH_APP_VIEW:String = "switchAppView"; public var view: int = 0; public function SwitchAppViewEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) { super(type, bubbles, cancelable); } override public function clone():Event { return new SwitchAppViewEvent(type); } public static function dispatchSwitchAppView(view:int):void { var e:SwitchAppViewEvent = new SwitchAppViewEvent(EVENT_SWITCH_APP_VIEW); e.view = view; e.dispatch(); } } }