Packagecom.pblabs.engine.resource
Classpublic class ResourceEvent
InheritanceResourceEvent Inheritance flash.events.Event

A ResourceEvent is an Event used by a Resource to dispatch load status information. In common use, this event never needs to be used as the ResourceManager wraps its functionality.

See also

ResourceManager
Resource


Public Properties
 PropertyDefined By
  resourceObject : Resource = null
The Resource associated with the event.
ResourceEvent
Public Methods
 MethodDefined By
  
ResourceEvent(type:String, resource:Resource, bubbles:Boolean = false, cancelable:Boolean = false)
ResourceEvent
Public Constants
 ConstantDefined By
  FAILED_EVENT : String = FAILED_EVENT
[static] This event is dispatched by a resource when loading of the resource's data fails.
ResourceEvent
  LOADED_EVENT : String = LOADED_EVENT
[static] This event is dispatched by a resource upon successful load of the resource's data.
ResourceEvent
Property Detail
resourceObjectproperty
public var resourceObject:Resource = null

The Resource associated with the event.

Constructor Detail
ResourceEvent()Constructor
public function ResourceEvent(type:String, resource:Resource, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
resource:Resource
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant Detail
FAILED_EVENTConstant
public static const FAILED_EVENT:String = FAILED_EVENT

This event is dispatched by a resource when loading of the resource's data fails.

LOADED_EVENTConstant 
public static const LOADED_EVENT:String = LOADED_EVENT

This event is dispatched by a resource upon successful load of the resource's data.