Control

Animation ActiveX control - version 5.0

File

COMCT232.OCX

Panel control name

Animation1

Script

Code

Display About box

Animation1.AboutBox

Close animation file

Animation1.Close

Open animation file

Animation1.Open &(1:)
Parameters:
&(1:)= Varying length character - the disk location of the file to load.

Play animation

Animation1.Play &(1:),&(2:),&(3:)
Parameters:
&(1:)=Integer - the number of times to play the file. -1 indicates continuous play
&(2:)=Integer - the start frame to play from. 0 indicates the beginning of the file
&(3:)=Integer - the last frame to play. -1 indicated the end of the file.

Stop animation

Animation1.Stop

Set the AutoPlay property

Animation1.AutoPlay = &(1:)
Parameters:
&(1:)=Boolean integer. True (1) means play the file as soon as it is opened.

Set the Center property

Animation1.Center = &(1:)
Parameters:
&(1:)=Boolean integer. True (1) means center the animation in the control.