Try something like this, Richard (not tested and off the top of me head):
on mouseUp
if the pendingMEssages is empty then doScrolling
else stopScrolling
end mouseUp
on doScrolling
set the scroll of fld 1 to the (scroll of fld 1 +1)
send doScrollingto me in 1
end doScrolling
on stopScrolling
repeat until the pendingMessages is empty
cancel item 1 of the pendingMessages
end repeat
end stopScrolling
>I've seen this before, but could not find it in the archives...
>
>Suppose I want a stack with one field and two buttons, named "Start" and
>"Stop." When I click "Start", I want the field to auto-scroll and keep
>scrolling, until I click the "Stop" button. Obviously a simple repeat loop
>in the Start button won't work. Anyone done this?
Hugh Senior
The Flexible Learning Company
Consultant Programming & Software Solutions
Fax/Voice: +44 (0)1483.27 87 27
Email: [EMAIL PROTECTED]
Web: www.flexibleLearning.com
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.