counter for player

mark mitchell cowhead at mac.com
Tue Oct 8 04:28:01 EDT 2002


That's it!  That function makes it very easy to implement a counter for 
a player.  For some reason,  I previously had not been able to access 
the currentTime of a player while it was playing.  Don't know what I was 
doing wrong, but it certainly works now.  Thanks!

mark mitchell
Japan

Ken Ray wrote:

> on mouseUp
>   answer isPlaying(long id of player 1)
> end mouseUp
>
> function isPlaying tTarget
>   put the currentTime of tTarget into tTimeA
>   wait 10 milliseconds
>   put the currentTime of tTarget into tTimeB
>   return (tTimeA <> tTimeB)
> end isPlaying




More information about the Use-livecode mailing list