         if (value != _maxCacheEntries)
         {
             _maxCacheEntries = value;
-            enforceMaximumEntries();
+            enforceMaximumCacheEntries();
         }
     }
     

    private var _enableCaching:Boolean = true;
    
    /**
     *  Enables caching behavior and functionality.
     * 
     *  @default true
     *  

    private function loader_completeHandler(e:Event):void
    {
        var loaderInfo:LoaderInfo = e.target as LoaderInfo;
       
        if (e.type == Event.COMPLETE && loaderInfo && !loaderInfo.childAllowsParent)
        {
            // Detected that our loader cannot be shared or cached. Mark 
            // as such and notify and possibly active content requests.
            addCacheEntry(loaderInfo.url, UNTRUSTED);
            dispatchEvent(new LoaderInvalidationEvent(LoaderInvalidationEvent.INVALIDATE_LOADER, loaderInfo));
        }
        else if (e.type == IOErrorEvent.IO_ERROR || e.type == SecurityErrorEvent.SECURITY_ERROR)
        {
            // Not suitable for caching.  Lookup our loader info in our cache since
            // the ioError event does not provide us the original url.
            var cachedRequest:CacheEntryNode = cacheEntries.find(e.target) as CacheEntryNode;
            if (cachedRequest)
                removeCacheEntry(cachedRequest.source);
        }
        
        // Remove the related loader from our activeRequests list if applicable.
        if (activeRequests.length > 0 || requestQueue.length > 0)
        {
            var node:LinkedListNode = activeRequests.remove(loaderInfo.loader);
            processQueue();
        }
        
        // Remove our listeners.
        loaderInfo.removeEventListener(Event.COMPLETE, loader_completeHandler);
        loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, loader_completeHandler); 
        loaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, loader_completeHandler); 
    }
}
}

import mx.utils.LinkedListNode;
import flash.display.Loader;
import flash.net.URLRequest;

/**
 *  Represents a single cache entry.
