Minor change to the instantiation of VectorSourceDialog, in order the close button...
authorAndy Allan <gravitystorm@gmail.com>
Sun, 2 May 2010 14:59:35 +0000 (14:59 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sun, 2 May 2010 14:59:35 +0000 (14:59 +0000)
net/systemeD/potlatch2/BackgroundSelector.mxml

index f435afd..db54c98 100644 (file)
@@ -22,7 +22,7 @@
        <mx:CheckBox width="100%" label="Dim background" selected="true" id="dim"
            change="Globals.vars.root.tileset.setDimming(dim.selected); Globals.vars.yahoo.alpha = dim.selected ? 0.5 : 1" />
 
-       <mx:Button label="Load vector file..." click="selectVectorSource();"/>
+       <mx:Button label="Load vector file..." click="new VectorSourceDialog().init();"/>
 
        <mx:Script><![CDATA[
                import net.systemeD.halcyon.*;
                        }
                }
                
-               private function selectVectorSource():void {
-          var panel:VectorSourceDialog = VectorSourceDialog(
-              PopUpManager.createPopUp(Application(Application.application), VectorSourceDialog, true));
-          PopUpManager.centerPopUp(panel);
-               }
 
     ]]></mx:Script>    
 </mx:VBox>