Can a mouseclick simultaneously send a message as it ends a "repeat until the mouseclick" loop?

Mark Swindell mdswindell at charter.net
Fri Nov 22 11:38:00 EST 2002


on 11/22/02 7:47 AM, Dar Scott at dsc at swcp.com wrote:

> On Friday, November 22, 2002, at 02:20 AM, Jan Schenkel wrote:
> 
>> First of all, let's redo the repeat loop and make it a
>> 'send' loop.
> 
> I recommend Jan's approach.
> 
> And would add this.
> 
> If doSlideThing is called from a button mouseUp, you need a way to keep
> from starting a second slide show running on top of and interfering with
> the first.  It can also keep the first from being able to be stopped.
> 
> The simplest way might be this:
> 
> on startSlideThing
> endSlideThing
> doSlideThing
> end startSlideThing
> 
> ...and don't call doSlideThing from anywhere else.

Thanks, Jan and Dar, for your suggestions.  I will try out the send
technique, as it sounds like it is a more efficient routine I need to become
familiar with. 

I misspoke about the "slide show." What is going on is "like" a slide show,
in that a series of words supplied from a variable are displayed in a field.
These lists are called from buttons that the user clicks to activate.  (Two
sets of them could not run at once, since there is only one global variable
supplying the words, and it is filled with a new set of words on each
mouseUp handler.) These words are then put, one at a time, into the same
field for display. 

So, the behavior I want is for a set of words to be displaying indefinitely
at user defined intervals, and then upon receiving a mouseclick on a
different button, for the different list to begin displaying immmediately,
without need of an intermediate click to stop the first handler from
executing.

Thanks,

Mark




More information about the use-livecode mailing list