RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAnimate.Play Method

Displays a sequence of frames from the AVI clip.

Pascal
procedure Play(FromFrame: Word; ToFrame: Word; Count: Integer);
C++
__fastcall Play(Word FromFrame, Word ToFrame, int Count);

Call Play to display the specified sequence of frames, repeating the sequence Count times. FromFrame is the first frame in the sequence, where 1 specifies the first frame in the clip, 2 specifies the second frame, and so on. ToFrame is the last frame in the sequence. The value of ToFrame should be greater than or equal to FromFrame and less than or equal to the value of the FrameCount property. Count specifies the number of times the sequence should be repeated. If Count is 0, the sequence is repeated until the Stop method is called.  

If the animation control is not Open when Play is called, Play sets Open to true.

Note: Calling Play is the same as setting StartFrame to FromFrame, StopFrame to ToFrame, Repetitions to Count, and then setting Active to true.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!