 import flash.net.URLLoader;
 import flash.net.URLRequest;
 
+import flash.system.Capabilities;
+
 /**
  * A utility for loading parameters from an XML file when run from
  * the local filesystem.

                callback(params);
            }
        );
        loader.load(new URLRequest("file:parameters.xml"));
    }

    /**

     */
    public static function getInfoParameters (loaderInfo :LoaderInfo, callback :Function) :void
    {
        var url :String = loaderInfo.url;

        // ensure that it's initialized...
        if (url == null) {
            // Create a function to wait until the loaded object is initialized
            var initWaiter :Function = function (event :Event) :void {
                loaderInfo.removeEventListener(Event.INIT, initWaiter);
