• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

make a button disappear

Guest
Oct 28, 2010 Oct 28, 2010

Copy link to clipboard

Copied

I am making a jeopardy game for a school project and I was wondering how I would make the buttons disappear after they have been clicked?

Thanks!

Views

582

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 29, 2010 Oct 29, 2010

Copy link to clipboard

Copied

You can set the visible property to false or set alpha to 0.

- Jason

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 31, 2010 Oct 31, 2010

Copy link to clipboard

Copied

LATEST

you can capture which button was clicked if u write event on button

<mx:Button id="standardBtn" label="Standard Button" 
                              click="
buttonClickHandler(event)"/>
in script
protected function buttonClickHandler(event:Event):void
            {
                Alert.show(" Button id "+ event.target.id + " label" + event.target.label) ;
            }

now u can hide the particular button

button.visible=false;//makes the button invicible, but the space will be used by button.

button.includeInLayout=false;// removes the space used by button on stage.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines