Methods to control the Animation Ocx.
Animation.Close
Animation.Open file$
Animation.Play [ repeat, start, end]
Animation.Seek
Animation.Stop frame%
repeat, start, end:Variant
The Close method causes the Animation control to close the currently open AVI file. If there was no file loaded, Close does nothing, and no error is generated.
Open opens an .avi file to play. If the AutoPlay property is set to True, then the clip will start playing as soon as it is loaded. It will continue to repeat until the .avi file is closed or the Autoplay property is set to False.
Play [ repeat, start, end] plays an .avi file.
repeatOptional. Integer that specifies the number of times the clip will be repeated. The default is -1, which causes the clip to repeat indefinitely.
startOptional. Integer that specifies the starting frame. The default value is 0, which starts the clip on the first frame. The maximum value is 65535.
endOptional. Integer that specifies the ending frame. The default value is -1, which indicates the last frame of the clip. The maximum value is 65535.
Seek directs an animation control to display a particular frame of an AVI clip. The control displays the clip in the background while the thread continues executing. frame% is a zero-based index of the frame to display.
Stop stops the play of an .avi file in the Animation control. The Stop method stops only an animation that was started with the Play method. Attempting to use the Stop method when the Autoplay property is set to True returns an error
To stop a file from playing, use the Stop method. However, if the Autoplay property is set to True, set Autoplay to False to stop the file from playing.
{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}