> I'm a little desperate too you know, but I'll be cool.
That's cool.
> Would somebody please point me to the right direction.
> Been trying to use ActiveX Controls to playback an MPEG
> movie in Director 8 but still no luck.
[snip]
Suggestions:
1) even though it makes more sense to do this in a Behavior script, do
it in a Movie script instead.
2) theFile = member(4).filename -- this assumes you've already set the
Filename property within the control; if you haven't, it won't work.
Note that even if this DID work in a behavior, it's rather dangerous
practice to hardcode the member number.
'sprite(me.spriteNum).member.filename' is better, since it doesn't break
when you move the member to another cast slot.
3) you don't want to issue the control's Play() method from an exitFrame
handler. That would try to Play() it repeatedly, on each exitFrame
event. Note also that the Play() method doesn't take any parameters;
only Open() does, and Open() automatically calls Play(), so you don't
need to.
4) WMP sometimes doesn't like to play mpeg videos that have an extension
other than .mpg, even if it could otherwise play them with no problems.
That is, it will play "movie.mpg", but not "movie.mpv", "movie.mp2",
etc, even if they're all the same file with different extensions. Make
sure your file extension is .mpg.
5) Finally, to get your video playing at the most basic level, run your
.dir and make it loop on exitFrame. Then type this in the Message
window:
sprite( myWMPSprite ).Open( "C:\MyProjects\MyMovie.mpg" )
This single line will play your video.
Hope this helps,
Rob
/*********************************
* Rob Wingate, Software Human *
* http://www.vingage.com *
* mailto:[EMAIL PROTECTED] *
*********************************/
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]