Packagetwaver.threed.event
Classpublic class SceneEvent
InheritanceSceneEvent Inheritance flash.events.Event

SceneEvent objects will be dispatched when the factors of the environment of the 3D scene is changed. So far, only when the lights in the scene are changed, the SceneEvent objects will be dispatched.



Public Properties
 PropertyDefined By
  result : Object
Specifies the additional information of the SceneEvent object.
SceneEvent
  source : Network3D
Indicates which scene is changed.
SceneEvent
Public Methods
 MethodDefined By
  
SceneEvent(s:Network3D, type:String, r:Object = null)
Construct of SceneEvent class.
SceneEvent
Public Constants
 ConstantDefined By
  LIGHT_ADDED : String = light.added
[static] Defines the type value of a SceneEvent object when a light is added into the 3D scene.
SceneEvent
  LIGHT_REMOVED : String = light.removed
[static] Defines the type value of a SceneEvent object when a light is removed from the 3D scene.
SceneEvent
  LIGHTS_CLEARED : String = lights.cleared
[static] Defines the type value of a SceneEvent object when all the lights are removed from the 3D scene.
SceneEvent
  LIGHT_UPDATED : String = light.updated
[static] Defines the type value of a SceneEvent object when a light is updated in the 3D scene.
SceneEvent
Property Detail
resultproperty
public var result:Object

Specifies the additional information of the SceneEvent object. If it is about the light in a 3D scene, this parameter stands for the tag of the specified LightProfile.

sourceproperty 
public var source:Network3D

Indicates which scene is changed.

Constructor Detail
SceneEvent()Constructor
public function SceneEvent(s:Network3D, type:String, r:Object = null)

Construct of SceneEvent class.

Parameters
s:Network3D — Network3D object of which the environment is changed.
 
type:String (default = NaN) — String. States which kind of change happened.
 
r:Object (default = null) — Object,
Constant Detail
LIGHT_ADDEDConstant
public static const LIGHT_ADDED:String = light.added

Defines the type value of a SceneEvent object when a light is added into the 3D scene.

LIGHT_REMOVEDConstant 
public static const LIGHT_REMOVED:String = light.removed

Defines the type value of a SceneEvent object when a light is removed from the 3D scene.

LIGHT_UPDATEDConstant 
public static const LIGHT_UPDATED:String = light.updated

Defines the type value of a SceneEvent object when a light is updated in the 3D scene.

LIGHTS_CLEAREDConstant 
public static const LIGHTS_CLEARED:String = lights.cleared

Defines the type value of a SceneEvent object when all the lights are removed from the 3D scene.