Avi file on Switchboard

  • Thread starter Thread starter sandy
  • Start date Start date
S

sandy

I am trying to insert an avi file (of a spinning globe)
into my switchboard. Will this only work on the web or
can I make it work in Access?
 
In reply to Brendan: You mentioned the following:
I just ran a quick test by copying and pasting all the
code (everything
between "***code start***" and "***code end***") into a
standard module and
running the 'fatest' function. I had to change the line 'a
=
fPlayStuff("C:\winnt\clock.avi")' to 'a =
fPlayStuff("C:\windows\clock.avi")', but other than that
it works for me.
.................
How do you run the 'fatest' function? I also put the code
in a standard module, but then wasn't sure if I had
to "call" the module code from the form on an event
procedure. I tried to put it on On Current. Please give
me a little more help!!!
 
I ran it by typing 'fatest' in the Immediate window. How you run the code
would depend on when you want the AVI played. If you want it played once,
when the switchboard form is first opened, try the Load event. Or if you
want it played again when the user returns to the switchboard form from
another form, try the Activate event. For information on when various events
are fired, search the help file for the phrase 'order of events'.
 
It worked! However, I need to tweak it for my purposes.
Would you know how to make it run continuously?
 
That's not something that I've ever wanted to do, so I can't offer any
specific advice, but check out the Timer event procedure and the
TimerInterval property (you'll find them both on the Event tab in the
Properties window in form design view).

I'm not at all sure what the performance and usability implications of this
might be. You *might* find that the app responds very slowly, if at all,
while the AVI is playing - but as I've said, its not something that I've
ever done, so I can't say for sure.
 
Back
Top