> I have aan AVI movie., and I have in the tempo channel a
> "Wait for end of
> MOV1" tempo setting that works fine.
> But I also have control buttons (play, pause, RW, FW) that
> also work fine
> except that:
> when the Pause button is clicked, the movie pauses but the
> tempo channel
> considers that as the end of the movie and lets the playback
> head continue
> its way.
>
> The script of the Pause button is:
> on mouseUp me
> sprite(x).movierate = 0
> end
>
> Any help welcomed.
you really don't want to combine these two things, the tempo channel &
the button the way you have it. try something like this in the score
script. I think that this will work with an AVI... (untested)
---------------
property pMovieDuration
on beginSprite me
pMovieDuration = sprite(yourVideoSprite).member.duration -- get the
length of the video
end
on exitFrame me
if sprite(yourVideoSprite).movieTime < pMovieDuration then
-- still playing so loop on the frame
go to the frame
else
-- we've reached the end
go to the frame + 1
end if
end
---------------
hth
Al Hospers
CamberSoft, Inc.
al<at>cambersoft<dot>com
http://www.cambersoft.com
A famous linguist once said:
"There is no language wherein a double
positive can form a negative."
YEAH, RIGHT
[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!]