Package ilcd
Class Graphic

Public Method moveAnimationToFrame

static void moveAnimationToFrame(int animLoc, int frame, int direction)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
animLoc 0 ... 7 index of the animation control
frame 0 ... number of frames - 1 frame of the animation
direction 0 ... 1 determines wether the animation runs forwards (0) or backwards (1)

Start the animated graphic loaded to the animation control referred by animLoc and stop again when the specified frame is reached. This can be done in both directions, dependet on the value of direction.

Note

Example

Graphic.moveAnimationToFrame(3, 5, 1);

Starts the animation loaded into animation control #3 in backwards direction and stops at frame #5.

See also:

Graphic
Graphic.loadAnimatedGraphics(int, int)
Graphic.startOrRestartAnimation(int)
Control.getGraphicInfo(int)