Packagecom.bourre.transitions
Interfacepublic interface TickListener
ImplementorsAbstractMultiTween, AbstractTween, CommandFPS, Delegate, EventCallbackAdapter, LoopCommand, SoundInfo, VideoDisplay

Player version: Flash Player 9.0
Language version: ActionScript 3.0

A TickListener object is an object which will change in time according to the TickBeacon it listen. A TickListener object is considered as playing only if it is registered as listener of a beacon, even if this beacon is not currently playing. It offers to the user two ways to handle interruption of animations within an application, all objects could be paused or resume with a single call to the start or stop methods of a beacon, or they could be individually paused or resume by calling the corresponding methods onto the listeners themselves.

Concret implementations should provides methods which automatically register on unregister the object as listener of the specified beacon.

Concret implementations should also provides methods to defines onto which concret beacon object this object will register itself. Implementers can choose to lock the type of beacon onto which the object register, but in that case the object may suffix its name with the type of beacon its support (see TweenFPS and TweenMS for concret example of that rule). If the object supports all kind of beacon, it should provides methods to dynamically change the beacon it will listen, even if it's already playing when the call occurs.

See also

TickBeacon.html


Public Methods
 MethodDefined by
  
onTick(e:Event = null):void
Method called by the TickBeacon for each step of time according to its time slicing approach.
TickListener
Method detail
onTick()method
public function onTick(e:Event = null):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Method called by the TickBeacon for each step of time according to its time slicing approach.

The onTick method is very similar to the old onEnterFrame method, but doesn't specifically occurs when entering in a new frame of a frame-based animation. The tick could be the result of a setInterval call, or a change in the timecode of a video.

Parameters
e:Event (default = null) — event dispatched by the beacon object