I've a main stack with an onOpencard script including:
Code: Select all
lock screen
open stack "PROCESSES A"
hide stack "PROCESSES A"
unlock screen
send "mouseUp" to btn "startupmain" on stack "PROCESSES A"
Script in button "startupmain" including:
Code: Select all
repeat with gClap=1 to 48
put empty into field ("w"&gClap)
set the backgroundColor of field ("w"&gClap) to white
end repeat
The only way around this, of course, is to append "on card 2 of stack "PROCESSES A" to each command. This is a pain as there's a fair bit of code in the button; and I'm a bit miffed that, apart from making the script a bit denser and more difficult to read, I shouldn't have to do this.
I hasten to add that if btn "startupmain" is clicked directly, everything is executed fine.
So does anyone know please, why that when the mouseUp is sent to the button from the main stack, and the button executes, it can't find the fields/buttons, etc on it's shared card/stack? (suddenly...) Any help appreciated here as this has been driving me a bit bonkers to solve...
