      *  @param rootURL An url that will form the root of the absolute url.
      *  If the <code>rootURL</code> does not specify a file name it must be 
      *  terminated with a slash. For example, "http://a.com" is incorrect, it
-     *  should be terminated with a slash, "http://a.com/".
+     *  should be terminated with a slash, "http://a.com/". If the rootURL is
+     *  taken from loaderInfo, it must be passed thru <code>normalizeURL</code>
+     *  before being passed to this function.
      * 
      *  When loading resources relative to an application, the rootURL is 
      *  typically the loaderInfo.url of the application.

   */
    public class LoaderUtil
    {
    /**
     *  The root URL of a cross-domain RSL contains special text 
     *  appended to the end of the URL. 

        if (rootURL &&
            !(url.indexOf(":") > -1 || url.indexOf("/") == 0 || url.indexOf("\\") == 0))
        {
            // First strip off the search string and then any url fragments.
            var index:int;
            
            if ((index = rootURL.indexOf("?")) != -1 )
                rootURL = rootURL.substring(0, index);

            if ((index = rootURL.indexOf("#")) != -1 )
                rootURL = rootURL.substring(0, index);
            
            // If the url starts from the current directory, then just skip
            // over the "./".
            // If the url start from the parent directory, the we need to
