That is easy.

1. Declare a global in your stack script outside any handler so it is available to all handlers in the Stack Script.

2. Initialize it to false in your on openStack handler.

3. Declare the global in your button script or else have the button call a handler in your stack script that does the work.

4. Have the mouseUp handler (or whatever script you call) set the value of the global to true.

5. Have your endless loop check for this value before each iteration, and bail out when it is true, setting the value back to false before it does.

Pretty basic stuff.

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Sep 29, 2008, at 3:40 PM, Michael wrote:

Hi:

I searched but didn't find quite what I am trying to implement. Any tips on
the best way to do the following is appreciated:

I have a Start button that starts an indefinite repeat. (It downloads a bit of information from a web site and sends an email, waiting 5 minutes until doing it again.) I would like a Stop button to stop the repeat, but all I can do is Cmd-. to abort it. I tried setting a global flag but that doesn't
work, at least the way I'm doing it. Ideas?

Thanks,

m

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to