Looping in QT movies
Stgoldberg at aol.com
Stgoldberg at aol.com
Wed Jul 5 13:13:22 EDT 2006
Thanks Ken,
Your script works.
Steve Goldberg
In a message dated 7/2/06 12:35:48 AM, Ken Ray writes:
> 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
>
>
More information about the use-livecode
mailing list