| Package | qnx.events |
| Class | public class ImageCacheEvent |
| Inheritance | ImageCacheEvent flash.events.Event |
ImageCacheEvent class provides event functionality related to the caching and loading of images.
See also
| Property | Defined By | ||
|---|---|---|---|
| error : IOError [read-only]
Gets the type of error that occurred. | ImageCacheEvent | ||
| url : String [read-only]
Gets the URL to the image that was cached. | ImageCacheEvent | ||
| Method | Defined By | ||
|---|---|---|---|
ImageCacheEvent(type:String, url_:String, error_:IOError = null)
Creates a new ImageCacheEvent instance given an event type, a URL to the image, and an error type. | ImageCacheEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| IMAGE_LOADED : String = imageLoaded [static]
Dispatched when an image has loaded. | ImageCacheEvent | ||
| IMAGE_LOAD_ERROR : String = imageLoadError [static]
Dispatched when an image has failed to load. | ImageCacheEvent | ||
| error | property |
error:IOError [read-only] Gets the type of error that occurred.
public function get error():IOError| url | property |
url:String [read-only] Gets the URL to the image that was cached.
public function get url():String| ImageCacheEvent | () | Constructor |
public function ImageCacheEvent(type:String, url_:String, error_:IOError = null)
Creates a new ImageCacheEvent instance given an event type, a URL to the image, and an error type.
type:String — The event type.
| |
url_:String — A URL to the image.
| |
error_:IOError (default = null) — The type of error that occurred. Default is null.
|
See also
| IMAGE_LOAD_ERROR | Constant |
public static const IMAGE_LOAD_ERROR:String = imageLoadErrorDispatched when an image has failed to load.
| IMAGE_LOADED | Constant |
public static const IMAGE_LOADED:String = imageLoadedDispatched when an image has loaded.