/src/away3d/events/AnimatorEvent.as
http://github.com/away3d/away3d-core-fp11 · ActionScript · 56 lines · 25 code · 8 blank · 23 comment · 0 complexity · 23c3d9f943862c0992abc6c331afa37e MD5 · raw file
- package away3d.events
- {
- import away3d.animators.*;
-
- import flash.events.*;
-
- /**
- * Dispatched to notify changes in an animator's state.
- */
- public class AnimatorEvent extends Event
- {
- /**
- * Defines the value of the type property of a start event object.
- */
- public static const START:String = "start";
-
- /**
- * Defines the value of the type property of a stop event object.
- */
- public static const STOP:String = "stop";
-
- /**
- * Defines the value of the type property of a cycle complete event object.
- */
- public static const CYCLE_COMPLETE:String = "cycle_complete";
-
- private var _animator:AnimatorBase;
-
- /**
- * Create a new <code>AnimatorEvent</code> object.
- *
- * @param type The event type.
- * @param animator The animator object that is the subject of this event.
- */
- public function AnimatorEvent(type:String, animator:AnimatorBase):void
- {
- super(type, false, false);
- _animator = animator;
- }
-
- public function get animator():AnimatorBase
- {
- return _animator;
- }
-
- /**
- * Clones the event.
- *
- * @return An exact duplicate of the current event object.
- */
- override public function clone():Event
- {
- return new AnimatorEvent(type, _animator);
- }
- }
- }