 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.filesystem.File;
+import flash.net.FileFilter;
 import flash.net.SharedObject;
 import flash.utils.IDataOutput;
 

                updatePublisher();
                updateWindowTitle(false);
            });
            file.browseForOpen("Open Flump Configuration");
        });
        fileMenuItem.submenu.addItemAt(new NativeMenuItem("Sep", /*separator=*/true), 2);


        function saveAs (..._) :void {
            var file :File = new File();
            file.addEventListener(Event.SELECT, function (..._) :void {
                // Ensure the filename ends with .json
                if (!StringUtil.endsWith(file.name.toLowerCase(), ".json")) {
                    file = file.parent.resolvePath(file.name + ".json");
                }

                _confFile = file;
                trace("Conf file is now " + _confFile.nativePath);
                _settings.data["CONF_FILE"] = _confFile.nativePath;
