Dispatched when a cache entry is invalidated, generally this occurs when the entry is determined to be untrusted while one or more outstanding load requests are active for a given cache entry.
public function addCacheEntry(source:Object, value:Object):void
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 1.5
Adds new entry to cache (or replaces existing entry).
Parameters
source:Object — Unique key to associate provided value with in cache.
value:Object — Value to cache for given key.
getCacheEntry
()
method
public function getCacheEntry(source:Object):Object
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 1.5
Obtain an entry for the given key if one exists.
Parameters
source:Object — Unique key used to represent the requested content resource.
Returns
Object — A value being stored by the cache for the provided key. Returns
null if not found or in the likely case the value was stored as null.
load
()
method
public function load(source:Object, contentLoaderGrouping:String = null):ContentRequest
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 2.5
Initiates a content request for the resource identified
by the key specified.
Parameters
source:Object — Unique key used to represent the requested content resource.
This parameter is typically an URL or URLRequest.
contentLoaderGrouping:String (default = null) — - (Optional) grouping identifier for the loaded resource.
ContentLoader instances supporting content groups generally allow for
resources within the same named grouping to be addressed as a whole. For
example the ContentCache's loader queue allows requests to be prioritized
by contentLoaderGrouping.
Returns
ContentRequest — A ContentRequest instance representing the requested resource.
prioritize
()
method
public function prioritize(contentLoaderGrouping:String):void
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 1.5
Promotes a content grouping to the head of the loading queue.
Parameters
contentLoaderGrouping:String — Name of content grouping to promote
in the loading queue. All queued requests with matching
contentLoaderGroup will be shifted to the head of the queue.
removeAllCacheEntries
()
method
public function removeAllCacheEntries():void
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 1.5
Resets our cache content to initial empty state.
removeAllQueueEntries
()
method
public function removeAllQueueEntries():void
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 1.5
Resets the queue to initial empty state. All requests, both active
and queued, are cancelled. All cache entries associated with canceled
requests are invalidated.
removeCacheEntry
()
method
public function removeCacheEntry(source:Object):void
Language Version :
ActionScript 3.0
Product Version :
Flex 4.5
Runtime Versions :
Flash Player 10, AIR 1.5
Remove specific entry from cache.
Parameters
source:Object — Unique key for value to remove from cache.
Dispatched when a cache entry is invalidated, generally this
occurs when the entry is determined to be untrusted while one or
more outstanding load requests are active for a given cache entry.
This mechanism allows any outstanding content requests to be reset
due to the fact that the cache entry has been deemed 'unshareable'.
Each content request notified then attempts instead re-requests the
asset.