Recently, Richard MacLemale wrote:
> 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?
You could try this...
In your start button script:
on mouseUp
global gAllowScroll
put true into gAllowScroll
runScroll
end mouseUp
In your card script:
on runScroll
global gAllowScroll
if not gAllowScroll then exit runScroll
set the scroll of fld myField to (the scroll of fld myField + 5)
send "runScroll" to me in 100 milliseconds
end runScroll
In your stop button script:
on mouseUp
global gAllowScroll
put empty into gAllowScroll
end mouseUp
Not tested but it should work.
Regards,
Scott
_____________________________________________________________________
Scott Rossi Tactile Media - Multimedia & Design
Creative Director Email: [EMAIL PROTECTED]
Web: www.tactilemedia.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.