Fix compiler warnings
[potlatch2.git] / potlatch2.mxml
index 09c9861ac159fa57caa99dafdf4615d95c362b6a..fbf7aeef049c5649a7ad16d3c55eb5a9a65c1ace 100644 (file)
@@ -32,7 +32,7 @@
         <mx:WipeRight id="wipeIn" duration="250"/>
     </fx:Declarations>
 
-    <mx:ApplicationControlBar dock="true">
+    <mx:ApplicationControlBar id="controlbar" dock="true">
         <mx:PopUpButton id="bgButton" label="Background" openAlways="true" styleName="appBarButton"
             creationComplete="bgButton.popUp = new BackgroundSelector();"/>
         <mx:PopUpButton id="styleButton" label="Map Style" openAlways="true" styleName="appBarButton"
                }
                
                private function continueInit(r:Event):void {
+                       controlbar.setStyle('dropShadowEnabled',"false");       // Flex 4 doesn't permit this in Application.css
+
                        // Set font
                        var FontLibrary:Class = r.target.applicationDomain.getDefinition("FontLibrary") as Class;
                        Font.registerFont(FontLibrary.DejaVu);