preOpenStack - Main stack script affects SubStack when it opens?
rjb at robelko.com
Tue Dec 7 21:42:50 EST 2010
On 07.12.2010 at 19:19 Uhr -0700 Glen Bojsza apparently wrote:
>When the substack opens the preOpenStack of the mainstack tries to run which
>generates an error since none of the objects on the mainstack are on the
>Should preOpenStack only work with the stack that contains it?
>If this is the proper way the system works then what is the work around?
Move your preOpenStack from the stack script to script of card 1.
What is happening is the result of message passing. In other words,
it the proper way the system works. If your preOpenStack is on first
card of the mainstack, it will execute only for the mainstack. An
alternative could be to check in the preOpenStack if the active stack
is the mainstack but it is simpler to move that handler.
More information about the Use-livecode