Packagealternativa.engine3d.animation
Classpublic class AnimationNotify
InheritanceAnimationNotify Inheritance flash.events.EventDispatcher

The notification trigger bound to certain time on an animation time line. AnimationNotify instance subscribes to NotifyEvent.NOTIFY When animation playback reaches the given time, an event is dispatched by the trigger.

View the examples

See also

AnimationClip.addNotify()
AnimationClip.addNotifyAtEnd()


Public Properties
 PropertyDefined By
  name : String
The name of notification trigger.
AnimationNotify
  time : Number
[read-only] The time in seconds on the time line to which the trigger is bound.
AnimationNotify
Public Methods
 MethodDefined By
  
AnimationNotify(name:String)
A new instance should not be created directly.
AnimationNotify
Property Detail
nameproperty
public var name:String

The name of notification trigger.

timeproperty 
time:Number  [read-only]

The time in seconds on the time line to which the trigger is bound.


Implementation
    public function get time():Number
Constructor Detail
AnimationNotify()Constructor
public function AnimationNotify(name:String)

A new instance should not be created directly. Instead, use AnimationClip.addNotify() or AnimationClip.addNotifyAtEnd() methods.

Parameters
name:String

See also

Examples
The following code listens event when 30 seconds elapsed from animation start:
     animationClip.addNotify(30).addEventListener(NotifyEvent.NOTIFY, notifyHandler)
     …
     private function notifyHandler(e:NotifyEvent):void{
      trace("Animation time is " + e.notify.time + " seconds now")