Loop, while and mouseUp

Dar Scott dsc at swcp.com
Thu Jun 24 15:57:23 EDT 2004


On Jun 24, 2004, at 7:36 AM, maxence.bernard at ensi-bourges.fr wrote:

> In my program, I have a "while" function that executes code. I have 
> also a
> button, which has the event "on mouseUp". The problem is that when the
> instructions inside the loop are executed, the code inside the event 
> "on
> mouseUp" is not executed when we click on the button. I didn't see any
> interruption functions that could wait for events and permit the code
> inside these events to be executed if the user clicks on one button for
> example.
>
> Any idea ?

Try using 'wait with messages' in the loop for an immediate solution.

For longer term solutions and new designs consider approaches that do 
not need long loops.  You might get some ideas from the "message 
mechanics" primer here:

    http://www.swcp.com/dsc/revstacks.html

Dar Scott



More information about the use-livecode mailing list