Line | |
---|
1 | /* SwitchAppViewEvent.as */
|
---|
2 |
|
---|
3 | /* need to implement this later as a possible way to control initialization */
|
---|
4 |
|
---|
5 | package gov.va.med.edp.control
|
---|
6 | {
|
---|
7 | import flash.events.Event;
|
---|
8 | import com.adobe.cairngorm.control.CairngormEvent;
|
---|
9 |
|
---|
10 | public class SwitchAppViewEvent extends CairngormEvent
|
---|
11 | {
|
---|
12 | public static const EVENT_SWITCH_APP_VIEW:String = "switchAppView";
|
---|
13 |
|
---|
14 | public var view: int = 0;
|
---|
15 |
|
---|
16 | public function SwitchAppViewEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
|
---|
17 | {
|
---|
18 | super(type, bubbles, cancelable);
|
---|
19 | }
|
---|
20 |
|
---|
21 | override public function clone():Event
|
---|
22 | {
|
---|
23 | return new SwitchAppViewEvent(type);
|
---|
24 | }
|
---|
25 |
|
---|
26 | public static function dispatchSwitchAppView(view:int):void {
|
---|
27 | var e:SwitchAppViewEvent = new SwitchAppViewEvent(EVENT_SWITCH_APP_VIEW);
|
---|
28 | e.view = view;
|
---|
29 | e.dispatch();
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.