Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

want to play avi file when initiating a vfp6 app

Status
Not open for further replies.

MJJ

Programmer
Jul 27, 2000
13
BH
All suggestions are greatly appreciated -
I have a shortcut to a vfp6 app, when clicked on, i want an 8 second avi file to play, then go into the vfp application. I tried putting the avi as ActiveX control (not bound) on a form & running the form as the first thing to do when starting the app, but it doesn't play (animate). Although I can double click on it & it WILL play. I'm transitioning all of our apps from fpw25 to vfp6 and I've got a LOT to learn! Please help.
 
MJJ, probably ActiveX control you used for AVI playing have some method to run animation. Example of code:

* I suppose form with ActiveX is form class 'AVIForm'
local loMyForm
loMyForm = createobject("AVIForm")
loMyForm.show() && note that form should be modeless
loMyForm.AVIObject.RunAVIPlaying &&find real name of this method

&& here you should organize delay by 8 seconds and than close form by following lines:

loMyForm.Release

or

release loMyForm

The name of playing method (or way how to play) you should find in documentation for ActiveX control you used.
Hope this helped.



Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top