Packagecom.rockonflash.papervision3d.objects
Classpublic class ColladaSceneLoader
InheritanceColladaSceneLoader Inheritance flash.events.EventDispatcher

Responsible for maintaining the core properties of the collada object, loading the Collada scene and providing access to the container reference



Public Properties
 PropertyDefined by
  container : Sprite
Container is where the actual collada scene is drawn
ColladaSceneLoader
  containerName : String
friendly name of the container
ColladaSceneLoader
  file : String
File referenc to the DAE file
ColladaSceneLoader
  materialsList : MaterialsList
MaterialsList for the collada scene to use
ColladaSceneLoader
  scale : Number = .01
scale of the collada scene
ColladaSceneLoader
  scene : SceneObject3D
SceneObject3D reference
ColladaSceneLoader
Public Methods
 MethodDefined by
  
ColladaSceneLoader(target:IEventDispatcher = null)
ColladaSceneLoader
  
A reference to the collada scene DisplayObject3D
ColladaSceneLoader
  
init(p_file:String, p_scene:SceneObject3D, p_scale:Number = .01, p_containerName:String = "colladaContainer"):void
Calling init() stores the necessary values and calls for the collada scene to be loaded and parsed
ColladaSceneLoader
Public Constants
 ConstantDefined by
  COLLADA_LOADED : String = "colladaLoaded"
[static] Dispatched when mouse coordinates have changed on stage when someone is dragging.
ColladaSceneLoader
  COLLADA_LOADED : String = "colladaLoaded"
[static]
ColladaSceneLoader
Property detail
containerproperty
public var container:Sprite

Container is where the actual collada scene is drawn

containerNameproperty 
public var containerName:String

friendly name of the container

fileproperty 
public var file:String

File referenc to the DAE file

materialsListproperty 
public var materialsList:MaterialsList

MaterialsList for the collada scene to use

scaleproperty 
public var scale:Number = .01

scale of the collada scene

sceneproperty 
public var scene:SceneObject3D

SceneObject3D reference

Constructor detail
ColladaSceneLoader()constructor
public function ColladaSceneLoader(target:IEventDispatcher = null)

Parameters
target:IEventDispatcher (default = null)
Method detail
getObject()method
public function getObject():DisplayObject3D

A reference to the collada scene DisplayObject3D

Returns
DisplayObject3D
init()method 
public function init(p_file:String, p_scene:SceneObject3D, p_scale:Number = .01, p_containerName:String = "colladaContainer"):void

Calling init() stores the necessary values and calls for the collada scene to be loaded and parsed

Parameters
p_file:String — String location of the DAE file
 
p_scene:SceneObject3D — SceneObject3D reference of where to add the collada object
 
p_scale:Number (default = .01) — initial scale of the collada scene
 
p_containerName:String (default = "colladaContainer") — friendly name of the collada container
Constant detail
COLLADA_LOADEDconstant
public static const COLLADA_LOADED:String = "colladaLoaded"

Dispatched when mouse coordinates have changed on stage when someone is dragging.

COLLADA_LOADEDconstant 
public static const COLLADA_LOADED:String = "colladaLoaded"