I guess I am not being clear (hmm I guess this would be easy enough to test, now that I break it down….)
helloWorld.livecodescript # stack # contains handler 1 on libraryStack answer "One World, One God" with "OK!" end libraryStack # contains handler 2 on wonderOfWonders Answer "The new president!" with "God Help Him/Us!" end wonderOfWonders ------------- initializeApp.livecodeScript # does a variety of job including: start using stack "HelloWorld.livecodescript # helloWord.livecodescript is now a "back" script. ---------- # some higher level button on a card script or wherever on mouseup wonderOfWonders # evokes dialog from helloWorld.livecodescript end mouseUp # but is the "libraryStack" also passed from hello world stackk when that button is pressed that calls a handler within it?? On 11/23/16, 12:50 PM, "use-livecode on behalf of Richard Gaskin" <use-livecode-boun...@lists.runrev.com on behalf of ambassa...@fourthworld.com> wrote: Sannyasin Brahmanathaswami wrote: ... > on libraryStack > # do more initialization stuff here that you > # may prefer to encapsulate inside this script > end libraryStack ... > ? this issue is: we don't want the initialization scripts in the > stack to fire everytime it is called, only on the very first "start > using" If you don't want your global library to handle all libraryStack messages you can add a condition like: on libraryStack if the short name of the target <> the short name of me then pass libraryStack end if # do more initialization stuff here that you # may prefer to encapsulate inside this script end libraryStack _______________________________________________ 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