Packageaway3d.events
Classpublic class ResourceEvent
InheritanceResourceEvent Inheritance flash.events.Event

The ResourceEvent is dispatched when a change of state occurs pertaining to resource management.

Public Properties
 PropertyDefined by
  resource : IResource
[read-only] A reference to the resource.
ResourceEvent
  uri : String
[read-only] An identifier (url or id) of the resource.
ResourceEvent
Public Methods
 MethodDefined by
  
ResourceEvent
(type:String, resource:IResource, uri:String = null)
Create a new ResourceEvent object
ResourceEvent
  
clone():Event
Creates a copy of the current object.
ResourceEvent
Public Constants
 ConstantDefined by
  DEPENDENCY_ERROR : String = "dependencyError"
[static] Dispatched when a resource's dependency error occurs.
ResourceEvent
  DEPENDENCY_RETRIEVED : String = "dependencyRetrieved"
[static] Dispatched when a resource's dependency is retrieved and resolved.
ResourceEvent
  RESOURCE_RETRIEVED : String = "resourceRetrieved"
[static] Dispatched when a resource and all of its dependencies is retrieved.
ResourceEvent
Property detail
resourceproperty
resource:IResource  [read-only]

A reference to the resource.

Implementation
    public function get resource():IResource
uriproperty 
uri:String  [read-only]

An identifier (url or id) of the resource.

Implementation
    public function get uri():String
Constructor detail
ResourceEvent()constructor
public function ResourceEvent(type:String, resource:IResource, uri:String = null)Parameters
type:String — The type of the event.
 
resource:IResource — A reference to the resource.
 
uri:String (default = null) — An identifier (url or id) of the resource.
Init Parameters
Method detail
clone()method
public override function clone():Event

Creates a copy of the current object.

Returns
Event
Constant detail
DEPENDENCY_ERRORconstant
public static const DEPENDENCY_ERROR:String = "dependencyError"

Dispatched when a resource's dependency error occurs. Such as wrong parser type, unsupported extensions, parsing errors, malformated or unsupported 3d file etc..

DEPENDENCY_RETRIEVEDconstant 
public static const DEPENDENCY_RETRIEVED:String = "dependencyRetrieved"

Dispatched when a resource's dependency is retrieved and resolved.

RESOURCE_RETRIEVEDconstant 
public static const RESOURCE_RETRIEVED:String = "resourceRetrieved"

Dispatched when a resource and all of its dependencies is retrieved.

Wiki link
Click to go to the wiki page for 'away3d.events.ResourceEvent'

Code examples

Comments