You can use a mousedown handler like this, put into the stack script :

on mousedown
        Switch short name of the target
                case "btnName1" -- concerned btns
                case "btnName2" -- concerned btns
                case "btnName3" -- concerned btns
                        save this stack
                        close this stack
        end switch
end mousedown

But you must remove the mousedown handler from the concerned btn scripts
You can put an empty mousedown handler into the btn scripts of those that
are not concerned to trap the mousedown and to prevent it to trigger the one
of the stack script.

Hope this help.

Roger;



-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de David Burgun
Envoy� : mardi 20 avril 2004 14:01
� : How to use Revolution
Objet : Best Way to Pass Values between Button and Stack Scripts

Hi,

What is is best way to pass a Value from an a Button Script to a Stack
Script?

Each button handler does the following:

set theFlag to (true | false)
close this stack

then in the closeStack hander in the Stack Script:

if theFlag is true then
      save this stack
end if

I could use a global or would it be better to use a Custom Property? 
This is for a Modal Dialog Stack and I have quite a few of them and I want
to do basically the same thing in each stack.

Thanks for any suggestions
Dave

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to