package away3d.events { import away3d.core.base.*; import flash.events.Event; /** * Passed as a parameter when a 3d object event occurs */ public class Object3DEvent extends Event { /** * Defines the value of the type property of a parentUpdated event object. */ public static const PARENT_UPDATED:String = "parentUpdated"; /** * Defines the value of the type property of a transformChanged event object. */ public static const TRANSFORM_CHANGED:String = "transformChanged"; /** * Defines the value of the type property of a scenetransformChanged event object. */ public static const SCENETRANSFORM_CHANGED:String = "scenetransformChanged"; /** * Defines the value of the type property of a sceneChanged event object. */ public static const SCENE_CHANGED:String = "sceneChanged"; /** * Defines the value of the type property of a sessionChanged event object. */ public static const SESSION_CHANGED:String = "sessionChanged"; /** * Defines the value of the type property of a sessionUpdated event object. */ public static const SESSION_UPDATED:String = "sessionUpdated"; /** * Defines the value of the type property of a dimensionsChanged event object. */ public static const DIMENSIONS_CHANGED:String = "dimensionsChanged"; /** * A reference to the 3d object that is relevant to the event. */ public var object:Object3D; /** * Creates a new MaterialEvent object. * * @param type The type of the event. Possible values are: Object3DEvent.TRANSFORM_CHANGED, Object3DEvent.SCENETRANSFORM_CHANGED, Object3DEvent.SCENE_CHANGED, Object3DEvent.RADIUS_CHANGED and Object3DEvent.DIMENSIONS_CHANGED. * @param object A reference to the 3d object that is relevant to the event. */ public function Object3DEvent(type:String, object:Object3D) { super(type); this.object = object; } /** * Creates a copy of the Object3DEvent object and sets the value of each property to match that of the original. */ public override function clone():Event { return new Object3DEvent(type, object); } } }