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
substack.
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?
thanks,
Glen
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.
Robert
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode