Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
IContentLoader

Package | spark.core
Interface | public interface IContentLoader extends flash.events.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.

Public Methods

| Method | Defined By
--- | --- | ---
|  | load(source:Object, contentLoaderGrouping:String = null):ContentRequest Initiates a content request for the resource identified by the key specified. | IContentLoader

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.

Wed Nov 15 2017, 09:50 AM +01:00