ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
spark.core 

IContentLoader  - AS3 Flex

Packagespark.core
Interfacepublic interface IContentLoader extends IEventDispatcher
Implementors ContentCache

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 1.5

Provides custom image/content loader for BitmapImage instances.

More examples



Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
IEventDispatcher
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
  
load(source:Object, contentLoaderGrouping:String = null):ContentRequest
Initiates a content request for the resource identified by the key specified.
IContentLoader
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
IEventDispatcher
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Method Detail

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 1.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.