Fix compiler warnings
[potlatch2.git] / net / systemeD / potlatch2 / BackgroundSelector.mxml
index cb65eb612aac153d25dc5c5eb336f4887f5bae8e..78d4b91ac0ad085dfa28645b9bb5e54b9c4ef32d 100644 (file)
@@ -11,9 +11,9 @@
                dataProvider="{Imagery.instance().getAvailableImagery()}"
                rowCount="{Imagery.instance().getAvailableImagery().length}"/>
        <mx:HBox>
-       <mx:CheckBox width="100%" label="Dim" selected="{FlexGlobals.topLevelApplication.theMap.getDimming()}" id="dim"
+       <mx:CheckBox width="100%" label="Dim" selected="{application.theMap.getDimming()}" id="dim"
            change="setDimming(dim.selected)" />
-       <mx:CheckBox width="100%" label="Sharpen" selected="{FlexGlobals.topLevelApplication.theMap.getSharpen()}" id="sharpen"
+       <mx:CheckBox width="100%" label="Sharpen" selected="{application.theMap.getSharpen()}" id="sharpen"
            change="setSharpen(sharpen.selected)" />
        </mx:HBox>
 
@@ -32,6 +32,8 @@
                import mx.collections.ArrayCollection;
                import mx.managers.PopUpManager;
 
+               [Bindable] private var application:Object = FlexGlobals.topLevelApplication;
+
                public function setDimming(v:Boolean):void {
                        FlexGlobals.topLevelApplication.theMap.setDimming(dim.selected);
                        FlexGlobals.topLevelApplication.yahoo.alpha = dim.selected ? 0.5 : 1;