| Package | alternativa.engine3d.animation |
| Class | public class AnimationNotify |
| Inheritance | AnimationNotify flash.events.EventDispatcher |
AnimationNotify instance subscribes to NotifyEvent.NOTIFY
When animation playback reaches the given time, an event is dispatched by the trigger.
See also
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
AnimationNotify(name:String)
A new instance should not be created directly. | AnimationNotify | ||
| name | property |
public var name:StringThe name of notification trigger.
| time | property |
time:Number [read-only] The time in seconds on the time line to which the trigger is bound.
public function get time():Number| AnimationNotify | () | Constructor |
public function AnimationNotify(name:String)
A new instance should not be created directly. Instead, use AnimationClip.addNotify() or AnimationClip.addNotifyAtEnd() methods.
name:String |
See also
animationClip.addNotify(30).addEventListener(NotifyEvent.NOTIFY, notifyHandler)
…
private function notifyHandler(e:NotifyEvent):void{
trace("Animation time is " + e.notify.time + " seconds now")