Loopig an .avi movie clip on a form.

TylerTand

Registered User.
Local time
Today, 13:22
Joined
Aug 31, 2007
Messages
95
I have a logo that is part of a very short avi movie clip. Iwould like to display the clip in a loop on open of the form. I found this code in the microsoft help, but it doesn't seem to work:
Private Sub cmd1_Click()
Dim AviFile As String

'Type the full path to the .avi file on the following line.
AviFile = "C:\Users\Tyler\Desktop\produce"

With an1
.Visible = True
.AutoPlay = True
.Open AviFile
End With
End Sub


It doesn't like: ".Open AviFile" the path to my video was just set up to my desktop to see if it would work. The error message says it is unable to open avi file? I know I am close but could use a little help getting this working. Oh and that doesn't take care of the looping part either. Hopefully that step just builds off the last. Thanks.:)
 
Fully qualify AviFile. i.e. AviFile = "C:\Users\Tyler\Desktop\produce.avi"
 
I tried this and it didn't change anything. Any other ideas?
 

Users who are viewing this thread

Back
Top Bottom