I haven't used it myself, but I think the "flushEvents" command will do what
you need.

Sarah

> Stopping Multiple Clicks
> 
> I've been unable to clear the click buffer (to stop inadvertent repeated
> clicks to objects) while an *animation* handler is running. Usually I use
> *wait while the mouseClick* to stop multiple clicks; however, in Revolution I
> have found that this does not discard clicks that occur during animated
> sequences; that is, while objects are being moved via script (a likely time
> for a user to start clicking).
> 
> For example, here's a recipe:
> 
> 1. Create a graphic box about the size of your thumbnail, and name it "test".
> 
> 2. Create a button, and add this script:
> 
> on mouseUp
> show graphic "test" at 68,180
> move graphic "test" to 210,180 in four seconds
> wait while the mouseClick --discard additional clicks to objects
> end mouseUp
> 
> 3. Click the button, and *while the graphic box is in motion*, click the
> button again. Rather than being discarded, the click jumps the script to the
> beginning.
> 
> I have cards that contain multiple controls for triggering different short
> animations. In Revolution, when a user begins clicking about on the card while
> an animation is in progress, *wait while the mouseClick* has no effect; the
> pending mouseClicks to other objects trigger yet more animations, producing
> highly unexpected results.
> 
> Ted
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> improve-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/improve-revolution
> 

_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

Reply via email to