ok, i put the on script whatever at the top of the file, and it worked! thanks so much.
I learned a couple of things from this conversation:
(1) place script objects at the top; actually, above all handlers because you can place script objects below the various globals which are also on top; e.g.,
a) globals
b) script objects
c) all handlers
(2) you cannot access these globals from within the script objects unless you pass the global(s) to the various handlers that are part of the script object … it appears therefore that a script object is like a standalone entity independent of the rest of your handlers.
Thanks Jobu this was exactly what I was looking for, works a treat!!!