On 8/12/11 12:04 PM, Bob Sneidar wrote:
You can refer to the current stack using the topStack.

Yes, but with caveats. If the stack isn't a toplevel (regular document) stack, then it (usually) won't be the topstack. It might be the defaultstack though.

A library
should be capable of working no matter which stack has the focus. I
would rewrite  the scripts in the library stack to be independent.
Also, you should not have to dispatch to a library stack. Start Using
puts the stack script in the backScript, and therefore in the message
path.

This means however, that all your scripts need to be in the stack
script and not other objects.

That's true, "start using" only works with stack scripts. You can use the script of any object by doing "insert script of <object reference> into back". That gives more flexibility and allows the in-use script to be stored anywhere.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to