This content has been marked as final. Show 3 replies
Add the following to a behavior script and attach it to your filmLoop.
Once done, you can send messages to the filmLoop like:
to pause it and:
to start it again.
on beginSprite me
my = sprite(spriteNum)
myMember = my.member
bPaused = FALSE
-- tell my to frameCount = the lastFrame
on exitFrame me
if bPaused then
tell my to go to the frame - 1
on mSetPaused me, isPaused
bPaused = isPaused
Thanks JohnAQ and Sean.
Sean - I tried your behavior. The problem is that it pauses in the frame
of the score, I want just the film loop to pause. I actually have
multiple film loops playing together. So, your behavior will pause all of
them (even if the behavior is just atached to one).
johnAq - do you know anything more about the mediamacros behavior? It's
very complex (for me) and so I can't work out how to pause it. I tried
adding the folloiwng to the bottom of the behavior:
set state = #playing
loopTimes = 1
That actually did pause the film loop but it played it until the end of
the loop then stopped. i want it to pause at the place you click it.