Packageqnx.events
Classpublic class ImageCacheEvent
InheritanceImageCacheEvent Inheritance flash.events.Event

The ImageCacheEvent class provides event functionality related to the caching and loading of images.

See also

qnx.utils.ImageCache


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property Detail
errorproperty
error:IOError  [read-only]

Gets the type of error that occurred.


Implementation
    public function get error():IOError
urlproperty 
url:String  [read-only]

Gets the URL to the image that was cached.


Implementation
    public function get url():String
Constructor Detail
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.

Parameters
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

Constant Detail
IMAGE_LOAD_ERRORConstant
public static const IMAGE_LOAD_ERROR:String = imageLoadError

Dispatched when an image has failed to load.

IMAGE_LOADEDConstant 
public static const IMAGE_LOADED:String = imageLoaded

Dispatched when an image has loaded.