or,

on mousedown
  sprite(1).visible = NOT(sprite(1).visible)
end

--bhakti


Sam Bennett wrote:
> 
> on mouseDown
>   if sprite(1).visible = TRUE then
>     sprite(1).visible = FALSE
>   else
>     sprite(1).visible = TRUE
>   end if
> end mouseDown
> 
> -----Original Message-----
> From: mark verhoef <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Tuesday, March 12, 2002 9:19 AM
> Subject: <lingo-l> visible &invisible
> 
> >Hello,
> >the question:I got 1 button and I got
> >A object on stage.
> >If you klik the button once,then the
> >object should be invisible.
> >  on mouseDown
> >    sprite(1).visible = false
> >  end
> >
> >BUT when you klik again on the
> >same button it should be visible again.
> >How do I do that.........
> >
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to