                 callback(params);
             }
         );
-        loader.load(new URLRequest("file:parameters.xml"));
+        loader.load(new URLRequest(paramUrl));
     }
 
     /**

import flash.net.URLLoader;
import flash.net.URLRequest;

/**
 * A utility for loading parameters from an XML file when run from
 * the local filesystem.


        // Simply use the parameters in the loaderInfo if we were not
        // loaded from a file.
        if (0 != url.indexOf("file:")) {
            callback(loaderInfo.parameters);
            return;
        }
        // else, let's try loading parameters.xml

        // assume only windows uses the wrong slash
        var fileSep :String = (-1 != Capabilities.os.indexOf("Windows")) ? "\\" : "/";
        var dex :int = url.lastIndexOf(fileSep);
        var paramUrl :String;
        if (dex == -1) {
            paramUrl = "file:";
        } else {
            paramUrl = url.substring(0, dex + 1);
        }
        paramUrl += "parameters.xml";
        Log.getLog(ParameterUtil).info("Trying to load parameters from " + paramUrl);

        var loader :URLLoader = new URLLoader();
        loader.addEventListener(IOErrorEvent.IO_ERROR,
            function (event :Event) :void {
