Making a button invisible

Hi,

How do I make a button (or any other DisplayObject) invisible.
I tried:

button.Visible = false;
button.Invalidate();

but this doesn’t work.

Peter

After changing the invisibility do window.Invalidate();