Fix compiler warnings
[potlatch2.git] / net / systemeD / potlatch2 / help / HelpDialog.mxml
index 91437be3a8968963a212c49802c7d33b3663896a..f9abf0fdc6770018a1d8ed33b1d92fa17c77ab68 100644 (file)
     import mx.core.Application;
     import mx.core.FlexGlobals;
 
+       [Bindable] private var application:Object = FlexGlobals.topLevelApplication;
+
     /** Pops up a multi-tabbed help window in the middle of the screen, then remembers that the user has seen it. */
     public function init():void {
-        PopUpManager.addPopUp(this, Application(FlexGlobals.topLevelApplication), true);
+        PopUpManager.addPopUp(this, Application(application), true);
         PopUpManager.centerPopUp(this);
         this.addEventListener(CloseEvent.CLOSE, helpDialog_close);
 
   </mx:TabNavigator>
 
   <mx:ControlBar>
-    <mx:Label text="Version: {FlexGlobals.topLevelApplication.version} Build: {FlexGlobals.topLevelApplication.build_number}" />
+    <mx:Label text="Version: {application.version} Build: {application.build_number}" />
     <mx:Spacer width="100%"/>
     <mx:Button label="Ok" click="PopUpManager.removePopUp(this);" styleName="titleWindowButton" />
   </mx:ControlBar>