As I understand it, synchronicity is an engine attribute, hard coded.
So I made two buttons. In btn 1:
Code: Select all
on mouseUp
repeat until the optionKey is down
put the mouseLoc && the backColor of btn 2
wait 10
end repeat
end mouseUp
And in btn 2:
Code: Select all
on mouseUp
setBackColor
end mouseUp
on setBackColor
if the optionKey is down then exit to top
set the backColor of btn 2 to any item of "red,green,blue,yellow,orange"
send setBackColor to me in 10
end setBackColor
If I click on btn 2, to start the color changes, and then click on btn 1 to see what comes back, the mouseLoc tracks, but the backColor is locked to the backColor current when the click took place. Same for the "top", which is a property, unrelated to mouse functions. And now is it so for every property and function? I am not going to try them all
On the other hand, if in button 1:
Code: Select all
on mouseUp
repeat until the optionKey is down
put the mouseLoc && the backColor of btn 2
set the backColor of btn 2 to any item of "red,green,blue,yellow,orange"
wait 10
end repeat
end mouseUp
This returns both. The backColor is set, and then the property is returned. Why should the backColor be "read" if in the same handler, but not if set in a different handler?
Craig