Hi,
I need to run multiple .avi files from my application, each for a certain no. of seconds. Im using an activemovie control to do this along with a timer control.
My Code:
--------
'Declaration
Dim MyVal As Boolean
Private Sub Form_Load()
FrmAVI.ActiveMovie1.FileName = "D:\WannaBrowse\test.avi"
MyVal = True
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Select Case MyVal
Case True
ActiveMovie1.FileName = "D:\WannaBrowse\start.avi"
MyVal = False
Case False
ActiveMovie1.FileName = "D:\WannaBrowse\test.avi"
MyVal = True
End Select
End Sub
--------------------------------
(Im using 2 .avi files here...I'll probably end up using 4-5 files, so will have to change the boolean variable to, maybe an integer.) The problem Im facing is that there is a small pause between the files when my form is shown. I dont want this to happen. Can anyone help me out???
Thanks in advance.
P.S. : Does anyone know a site for the activemovie control??? I need to look up the events & properties...dont have enuf space on my hard disk to install the entire MSDN!
Thanks again.


Reply With Quote