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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control .AVI playback in the movie

Status
Not open for further replies.

paskuda

Programmer
Jan 27, 2005
104
PL
Hello,

I'm a total beginner, so sorry if I'm asking a stupid question, but I've been googling for two hours now on and can't find the answer.
My problem is: I imported a movie into the cast, it's a DivX movie. I placed it on the Stage and it's playing fine, as soon as I start the movie. What I'm stuck on is playback control. I'd like to be able to pause the movie by clicking on it.
I tried to add a new behavior, named "Pause" with a script like this:

on mouseUp me
sprite(me.spriteNum).pause()
end mouseUp

but whenever I click the video I get an error stating that handler was not found in object.

Could anyone give me some hints?

Mike
 
OK, I found some suggestions to use .wmv instead, I converted my clip and now everything's working great.
Still I wondr - why isn't it possible to control divx in the same way? Or is it?

Mike
 
Try

sprite(sprite channel).movieRate=0

Cheers~Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top