IMG Loader (Fade) V. 2.0 Documentation
Properties
| Name | Type | Description |
| autoLoad | Boolean | Property indicates whether to automatically load the content (true), or wait until Loader.load() is called (false). The default value is true. |
| autoSize | Boolean | Property indicates whether the component is resized to match the image size (true). The default value is false. |
| contentPath | String | Property indicates an absolute or relative URL of the file to load into the loader. A relative path must be relative to the SWF file that loads the content. The URL must be in the same subdomain as the loading SWF file. |
| easingSpeed | Number | Property (1-10) indicates transition easing speed. |
| easingType | String | Property indicates transition easing type.
|
| initialAlpha | Number | Property defines initial transparency (alpha) value. |
| maintainAspectRatio | Boolean | Property that, if true, maintains the image aspect ratio. The default value is true. |
| preloader | String | Property defines whether the preloader is displayed. The default value is set to on.
|
| preloaderColor | Number | Property defines preloader color. |
| scaleContent | Boolean | Property indicates whether the content scales to fit the loader (true), or the loader scales to fit the content (false). The default value is true. |
| transition | String | Property defines whether the transition is displayed. The default value is on.
|
Methods
| Name | Return Type | Description |
| load( ) | Void | Method tells the loader to begin loading its content. Example myLoader.contentPath = "image.jpg"; myLoader.load(); |
Events
| Name | Return Value | Description |
| stateChanged | type target |
Triggered when component state changes. Example function stateChanged (evnt){ trace(evnt.type); } myLoader.addEventListener("stateChanged", this); |
| progress | type target bytesLoaded bytesTotal |
Triggered when the load is triggered by the autoLoad parameter or by a call to myLoader.load(). The progress event is not always broadcast, and the complete event may be broadcast without any progress events being dispatched. This can happen if the loaded content is a local file. Example function progress (evnt){ trace(evnt.bytesLoaded); trace(evnt.bytesTotal); } myLoader.addEventListener("progress", this); |
| complete | type target |
Triggered after content has been loaded. Example function complete(evnt){ trace("Content has been loaded"); } myLoader.addEventListener("complete", this); |
