 
     protected function listLibrary (file :File) :void {
         use namespace xflns;
-        var loadDomFile :Future = Files.load(file.resolvePath("DOMDocument.xml"), _loader);
+        const domFile :File = file.resolvePath("DOMDocument.xml");
+        const loadDomFile :Future = Files.load(domFile, _loader);
         loadDomFile.succeeded.add(function (domFile :File) :void {
             const xml :XML = bytesToXML(domFile.data);
 

            }
        });
        loadLibraryFile.failed.add(function (error :Object) :void {
            _library.addError(_library, ParseError.CRIT,
                "Unable to load file " + file.nativePath, error);
        });
    }


            }

            // Done loading
            _loader.shutdown();
        });
        loadDomFile.failed.add(function (error :Object) :void {
            _library.addError(_library, ParseError.CRIT, "Unable to read " + domFile.nativePath,
                error);
            _loader.shutdown();
        });
    }
