?
Solved

How do i disable a button, then re-enable it?

Posted on 2007-08-05
1
Medium Priority
?
225 Views
Last Modified: 2013-11-05
In my flash project, I have a button that triggers a movie clip to transition from non-visible to visible. On this "pop-up" I have a button that makes it disappear again. However, the pop-up is sizable, taking up most of the page, but the user is still able to click on the buttons behind it. What I want is the button that triggers the pop-up to disable all of the other buttons, so the user cannot interact with them, and the button that hides the pop-up to re-enable them. Right now I have some buttons embedded in movie clips, while others are directly in the timeline. What actionscript can I use to achieve this desired effect?
0
Comment
Question by:DesignersCafe
1 Comment
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 19633637
use Button.enabled property to enable and disable the button

sample code:

Button_instance_name.enabled = false; // this code will disable the button

Button_instance_name.enabled = rue; // this code will enable the button
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question