Packagetwaver.threed.event
Classpublic class ModelLoadEvent
InheritanceModelLoadEvent Inheritance flash.events.Event

ModelLoadEvent objects will be dispatched when loading external model files. With the ModelLoadEvent objects, the progress of loading models can be monitored. The ModelLoadEvent object is only dispatched by Util3D.



Public Properties
 PropertyDefined By
  cause : *
Describes the url of the external model file when a loading error occurs, or describes the cause of the error when parsing a external model file.
ModelLoadEvent
  elementId : *
The id of the element which is represented by the external model file.
ModelLoadEvent
Public Methods
 MethodDefined By
  
ModelLoadEvent(type:String, id:*, cause:* = null)
Construct function of ModelLoadEvent class.
ModelLoadEvent
Public Constants
 ConstantDefined By
  LOAD_ERROR : String = ext.model.error
[static] The type of a ModelLoadEvent.
ModelLoadEvent
  LOAD_PROGRESS : String = ext.model.progress
[static] The type of a ModelLoadEvent.
ModelLoadEvent
  LOAD_SUCCESS : String = ext.model.loaded
[static] The type of a ModelLoadEvent.
ModelLoadEvent
Property Detail
causeproperty
public var cause:*

Describes the url of the external model file when a loading error occurs, or describes the cause of the error when parsing a external model file.

elementIdproperty 
public var elementId:*

The id of the element which is represented by the external model file.

Constructor Detail
ModelLoadEvent()Constructor
public function ModelLoadEvent(type:String, id:*, cause:* = null)

Construct function of ModelLoadEvent class.

Parameters
type:String
 
id:*
 
cause:* (default = null)
Constant Detail
LOAD_ERRORConstant
public static const LOAD_ERROR:String = ext.model.error

The type of a ModelLoadEvent. Defines that an error occurs when loading an external model file.

LOAD_PROGRESSConstant 
public static const LOAD_PROGRESS:String = ext.model.progress

The type of a ModelLoadEvent. Defines the loading is in progress.

LOAD_SUCCESSConstant 
public static const LOAD_SUCCESS:String = ext.model.loaded

The type of a ModelLoadEvent. Defines the loading progress is finished without any error.