Click to See Complete Forum and Search --> : Inserting an .avi / .mpeg movie into a form
dbznet2001
Jan 3rd, 2001, 10:06 AM
I'm making an adventure game as my isp in High School, and i want to make the game have a good Intro, i have a movie i wanna put in the start but i dont know how to make it play.. if anybody can help me here i'll be greatfull....
Thank you in advance.
Zero
Jan 3rd, 2001, 11:52 AM
You can use an MCIWndX control (how's that for a name, eh?), which comes with ActiveMovie, I think. Well, it either will or won't be in your components list. Operation is fairly simple. Just set the filename to your movie, set all the controls and status bars to invisible, and tell the thing to play in your code. I think it's even got a help file.
~Zero the Inestimable
M@rk
Jan 3rd, 2001, 01:25 PM
Apart from that, it's easier to put a Animation control(it comes with Microsoft Common Controls-2 in components section)
But that's for avi only, for mpeg try Media Player Control
In your project, add component module - Microsoft Windows Commond Controls-2 5.0. After that you will see one of the tool called Animation in the toolbox. Add that tool in your form. Then last thing is write small code:
Animation1.Open "yourmovie.avi"
Animation1.Play 1
to stop playing:
Animation.stop
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.