/src/away3d/events/Object3DEvent.as
http://github.com/away3d/away3d-core-fp11 · ActionScript · 67 lines · 24 code · 10 blank · 33 comment · 0 complexity · 3224f980467ac55040eaea18d8de97b6 MD5 · raw file
- 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 visiblityUpdated event object.
- */
- public static const VISIBLITY_UPDATED:String = "visiblityUpdated";
-
- /**
- * 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 positionChanged event object.
- */
- public static const POSITION_CHANGED:String = "positionChanged";
-
- /**
- * Defines the value of the type property of a rotationChanged event object.
- */
- public static const ROTATION_CHANGED:String = "rotationChanged";
-
- /**
- * Defines the value of the type property of a scaleChanged event object.
- */
- public static const SCALE_CHANGED:String = "scaleChanged";
-
- /**
- * A reference to the 3d object that is relevant to the event.
- */
- public var object:Object3D;
-
- /**
- * Creates a new <code>MaterialEvent</code> object.
- *
- * @param type The type of the event. Possible values are: <code>Object3DEvent.TRANSFORM_CHANGED</code>, <code>Object3DEvent.SCENETRANSFORM_CHANGED</code>, <code>Object3DEvent.SCENE_CHANGED</code>, <code>Object3DEvent.RADIUS_CHANGED</code> and <code>Object3DEvent.DIMENSIONS_CHANGED</code>.
- * @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);
- }
- }
- }