dispatch and the target
pete at mollysrevenge.com
Fri Aug 12 14:38:29 EDT 2011
Thanks for the additional info. "start using" works in my situation as the
scripts are all in the stack it refers to although I probably did that
because it was a requirement for "start using". In any case, it all seems
to work as expected.
I will have to experiment more with situations where the calling stack is
not toplevel. Maybe I'll have to go back to parsing the executionContexts.
Molly's Revenge <http://www.mollysrevenge.com>
On Fri, Aug 12, 2011 at 11:04 AM, J. Landman Gay
<jacque at hyperactivesw.com>wrote:
> 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
> 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
>> 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
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode