hiding objects

Scott Rossi scott at tactilemedia.com
Fri Sep 26 12:06:01 EDT 2003


On 9/26/03 9:34 AM, "Lars Brehmer" <lbrehmer at rof.net> wrote:

> Is it possible to script a button so that when clicked it hides a
> button that occurs on on every card in a stack?  The name and label of
> the button are the same on every cloned card, but each occurance is
> given a differnt object number.

If the button is not in a group (is there a reason why it is not?) you
could:

on mouseUp
    repeat with C = 1 to number of cds of this stack
        hide btn "cloaked" of card C
    end repeat
    # other code here
end mouseUp


To toggle the visibility, you could:

on mouseUp
    put "cloaked" into B
    repeat with C = 1 to number of cds of this stack
        set the vis of btn B of card C to not the vis of btn B of cd C
    end repeat
    # other code here
end mouseUp


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list