> Can someone suggest a good way of making a quicktime movie play continuously
> back and forth rather than starting from the beginning with each loop? This
> would be useful in creating a realistic continuous water wave motion that does
> not loop and jerk back to the beginning of the movie when the movie ends.

You could start the player object playing, then test to see when you reach
the end and then set the playRate to -1 to play it backwards, then test for
the beginning, set it back to 1, etc.

Try this:

on mouseUp
  set the playrate of player 1 to 1
  play player 1
  CheckPlayer
end mouseUp

on CheckPlayer
  if the playRate of player 1 is 1 then
    if the currentTime of player 1 is (the duration of player 1) then
      set the playRate of player 1 to -1
      play player 1
    end if
  else
    if the currentTime of player 1 is 0 then
      set the playRate of player 1 to 1
      play player 1
    end if
  end if
  if the optionKey is not down then  -- when you want it to stop
    send "CheckPlayer" to me in 100 milliseconds
  end if
end CheckPlayer


Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to