Package | spark.core |
Interface | public interface IContentLoader extends IEventDispatcher |
Implementors | ContentCache |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
More examples
Public Methods
Method | Defined By | ||
---|---|---|---|
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 | ||
Dispatches an event into the event flow. | IEventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | IEventDispatcher | ||
Initiates a content request for the resource identified
by the key specified. | IContentLoader | ||
Removes a listener from the EventDispatcher object. | IEventDispatcher | ||
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.
|
ContentRequest — A ContentRequest instance representing the requested resource.
|
Thu Dec 6 2018, 01:12 PM -08:00