Packageaway3dlite.events
Classpublic class ParserEvent
InheritanceParserEvent Inheritance flash.events.Event

Passed as a parameter when a 3d object loader event occurs

Public Properties
 PropertyDefined by
  parser : AbstractParser
A reference to the loader object that is relevant to the event.
ParserEvent
  result : Object3D
A reference to the parsed object that is relevant to the event.
ParserEvent
Public Methods
 MethodDefined by
  
ParserEvent
(type:String, parser:AbstractParser, result:Object3D)
Creates a new ParserEvent object.
ParserEvent
  
clone():Event
Creates a copy of the Loader3DEvent object and sets the value of each property to match that of the original.
ParserEvent
Public Constants
 ConstantDefined by
  PARSE_ERROR : String = "parseError"
[static] Defines the value of the type property of a parseError event object.
ParserEvent
  PARSE_PROGRESS : String = "parseProgress"
[static] Defines the value of the type property of a parseProgress event object.
ParserEvent
  PARSE_SUCCESS : String = "parseSuccess"
[static] Defines the value of the type property of a parseSuccess event object.
ParserEvent
Property detail
parserproperty
public var parser:AbstractParser

A reference to the loader object that is relevant to the event.

resultproperty 
public var result:Object3D

A reference to the parsed object that is relevant to the event.

Constructor detail
ParserEvent()constructor
public function ParserEvent(type:String, parser:AbstractParser, result:Object3D)Parameters
type:String — The type of the event. Possible values are: Loader3DEvent.PARSE_SUCCESS, Loader3DEvent.PARSE_ERROR and Loader3DEvent.PARSE_PROGRESS.
 
parser:AbstractParser — A reference to the parser object that is relevant to the event.
 
result:Object3D — A reference to the parsed object that is relevant to the event.
Init Parameters
Method detail
clone()method
public override function clone():Event

Creates a copy of the Loader3DEvent object and sets the value of each property to match that of the original.

Returns
Event
Constant detail
PARSE_ERRORconstant
public static const PARSE_ERROR:String = "parseError"

Defines the value of the type property of a parseError event object.

PARSE_PROGRESSconstant 
public static const PARSE_PROGRESS:String = "parseProgress"

Defines the value of the type property of a parseProgress event object.

PARSE_SUCCESSconstant 
public static const PARSE_SUCCESS:String = "parseSuccess"

Defines the value of the type property of a parseSuccess event object.

Wiki link
Click to go to the wiki page for 'away3dlite.events.ParserEvent'

Code examples

Comments