Dsplaying a frame from a graphic animationΒΆ

AnimateSeek()

Display a frame from a graphic animation


SYNTAX

AnimateSeek(graphic_id [, frame])

Displays the specified frame of an animated graphic.

graphic_id

The identifier of the graphic to be played. The graphic is defined as +|- graphic graphic_id, and must be allocated the type clause GT_ANIMATE and an image clause which must be a .avi file without sound.

frame

The frame to be displayed. The default for frame is 0 (first frame). To display the last frame, use the value -1.

This function is useful for redisplaying the first frame of a graphic after animation has been halted by the AnimateStop function.


EXAMPLE

+graphic Arrow4 at 120,226 {
     image = "/images/arrow4.bmp"
     type = GT_ANIMATE
}
     ...

     AnimateStop(Arrow4)
     AnimateSeek(Arrow4, 0)

RELATED TOPICS

Graphics

Animated graphics

AnimatePlay()

AnimateStop()