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.
Syntax
object.Open file
Part | Description |
object | Required. An object expression that evaluates to an object in the Applies To list. |
file | Required. The name of the file to play. |
Remarks
The Animation control cannot play .avi files that include sound data. In addition, the Animation control can display only uncompressed .avi files or .avi files that have been compressed using Run-Length Encoding (RLE). An error will be returned when the Open method is invoked with a file that includes sound data or that is in an unsupported compression format.