I actually never used a backScript before, and cannot get a simple test to work.
On a card with a button and a field, in the button script:
Code: Select all
on mouseUp
startCounter
end mouseUp
Code: Select all
on startCounter
add 1 to fld 1
if the optionKey is down then exit to top -- to escape
send "startCounter" to me in 10
end startCounter
Now if I "insert the script of this stack into back", no complaints , and "the backScripts" show the new, er, backScript.
But if I then comment out the stack script, I get an error that LC cannot find the handler "startCounter". If I restore the stack script, all works again. So why cannot LC see the handler? The message should have passed right along, no?
Me again, eh?
Craig