repeat loops, efficiency

Kurt Kaufman kkaufman at snet.net
Sat Jan 1 09:11:12 EST 2005


I have a repeat loop within a button script that runs constantly:

on mouseup
set the name of me to "STOP"
   repeat until the mouseclick
     --do specific stuff here
     wait ten seconds --I need this delay
   end repeat
     set the name of me to "START"
end mouseup


Is there perhaps a more efficient way of doing this?

Thanks, Kurt

PS/ If the answer to my question is in the Rev docs, I could not easily 
find it.  How should I have searched?



More information about the use-livecode mailing list