|
|
Total Access Components Tour: AVI Control
The AVI control lets you play Windows digitized video *.AVI files. You
can play, pause, stop, rewind, and navigate in these video files, and set
repeat play.Note: Your machine must have a sound card installed and operating
correctly in order for the sound track to be played.
Using the AVI Control
Place a Total Access Components AVI control on your form. After
placing and naming the control, write the appropriate VBA code to specify
the name and path of the AVI file to play by using the FileName property.
You can also set the FileName property at design time using the Property
Window. Then use the Close, Open, Pause, Play, Rewind, or Stop methods to
control the file.
Stopping and Rewinding
The Stop method stops playing the file and rewinds to the beginning. If
the Play method is called and the file plays until completion, the control
also rewinds to the beginning.
AVI Properties
|
Name |
Description |
|
BackColor |
The background color of the control. |
|
FileName |
The path and name of the AVI file. |
|
Length |
The play length in milliseconds. |
|
Position Default |
The current position in milliseconds. |
|
Repeat |
Whether the file is replayed. |
|
RepeatCount |
How many times to repeat play (integer value). |
|
Stretch |
Whether the video is stretched to the size of the control. |
AVI Methods
|
Name |
Description |
|
Close |
Close the AVI resource. |
|
Open |
Open the AVI resource. |
|
Pause |
Pauses the AVI file. |
|
Play |
Plays the AVI file. |
|
Rewind |
Rewinds the AVI file to its beginning. |
|
Stop |
Stops the AVI file and rewinds. |
AVI Events
|
Name |
Description |
|
Click |
Fires when the mouse is clicked over the control. |
|
DblClick |
Fires when the mouse is double clicked over the control. |
|
KeyDown |
Fires when a key is depressed. |
|
KeyPress |
Fires when a key is pressed. |
|
KeyUp |
Fires when a key is released. |
|
MouseDown |
Fires when a mouse button is depressed over the control. |
|
MouseMove |
Fires when the mouse moves over the control. |
|
MouseUp |
Fires when a mouse button is released over a control. |
|
OnNewPosition |
Fires when a new position in the movie is reached. |
|
OnReplay |
Fires when play starts over. |
|