rudimentary help and options dialog boxes
[potlatch2.git] / net / systemeD / potlatch2 / help / HelpDialog.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:TitleWindow
3         xmlns:mx="http://www.adobe.com/2006/mxml" 
4         layout="vertical" showCloseButton="true"
5         horizontalAlign="center" title="Help"
6         width="350" height="250" verticalGap="0">
7   <mx:Script><![CDATA[
8     import mx.managers.PopUpManager;
9     import mx.events.CloseEvent;
10     import mx.core.Application;
11     
12     public function init():void {
13         PopUpManager.addPopUp(this, Application(Application.application), true);
14         PopUpManager.centerPopUp(this);
15         this.addEventListener(CloseEvent.CLOSE, helpDialog_close);
16     }
17     
18     private function helpDialog_close(evt:CloseEvent):void {
19         PopUpManager.removePopUp(this);
20     }
21
22               ]]>
23   </mx:Script>
24   <mx:Text>
25     <mx:text>
26       There is no spoon.
27     </mx:text>
28   </mx:Text>
29   <mx:ControlBar>
30     <mx:Spacer width="100%"/>
31     <mx:Button label="Exit" click="PopUpManager.removePopUp(this);"/>
32   </mx:ControlBar>
33
34 </mx:TitleWindow>