I am having the same experience: my globals aren't initializing, openstack handler doesn't execute.
I have one stack with one card, most scripts are in stack script
A series of global variables are the very first lines. My globals don't seem to work. Well, they work in stack script, but not in a btn script. I've resorted to using fields for now.
My basic problem may be: how to "run" a stack?
What I do is edit a script. Then click Compile btn.
Then click the tool palette
Then click the Arrow key.
-- This does not execute openstack (on Mac or Win XP)
Is there a better way to switch from edit to run? Is there a way to avoid having the stack disappear? It doesn't always, but I don't know what makes it stay put sometimes. Here's test code
Code: Select all
global gTEST
on openStack
put 1 into gTEST
put "openstack has run... " & gTEST
checkglobal
end openStack
on checkglobal
put gTEST after msg
end checkglobal
Code: Select all
on mouseUp
put "***" && gTEST
end mouseUp
--What am I missing ?