currentTimeChanged and player callbacks bug?

J. Landman Gay jacque at hyperactivesw.com
Mon Apr 11 00:46:19 EDT 2011


On 4/10/11 11:34 PM, Nicolas Cueto wrote:

> Here's the problem. If the video controller thumb is slid>>back<<  in
> time, when "play" is clicked the correct callback will get immediately
> triggered. However, if the thumb is slid>>forward<<  in time, it
> appears that LC is running thru every callback between the time when
> the control bar was clicked and the time when it is released.
>
> I say "appears", because I can see the text-field that displays the
> current line of text changing madly. So, I guess the lag is related to
> the text having to be redrawn on-screen.
>
> But, I do not understand why the player object doesn't automatically
> jump to the current callback when the currentTimeChanged happens? It
> seems to be doing so when moving back in time. Just not when moving
> forward in time.

You could try capturing the mouseUp message instead of the 
currentTimeChanged. That only triggers when the user lets go.


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list