TickListener

Kind of class:public interface
Package:com.bourre.transitions
Inherits from:none
Implemented by:
Author:Francis Bourre, Cédric Néhémie
Classpath:com.bourre.transitions.TickListener
File last modified:Monday, 24 November 2008, 11:36:57
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:

Summary


Event handlers
  • onTick (e:Event = null) : void
    • Method called by the TickBeacon for each

Event handlers

onTick

public function onTick (
e:Event = null) : void

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 dispatched by the beacon object