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

Is it possible to disable radio button group?

Guest
Dec 12, 2015 Dec 12, 2015

Hi.

I want to know is it possible to temporarily disable radio button group? Because Im planning to temporarily disable the radio button group in my project while the timer on pause. Anyone can help me?

TOPICS
ActionScript
567
Translate
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

correct answers 1 Correct answer

Enthusiast , Dec 12, 2015 Dec 12, 2015

No you have to use the buttons names, for example:

btn1.enabled = btn2.enabled = btn3.enabled = false;

Translate
Enthusiast ,
Dec 12, 2015 Dec 12, 2015

Use:

btnName.enabled = false; // to disable

And btnName.enabled = true; // to enable

Translate
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
Guest
Dec 12, 2015 Dec 12, 2015

I try to add inside the code but when I run the file, I click pause timer button, the next button still can direct to the next page

var pause:Boolean = false;

pausebtn.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent):void

{

    if(pause == false)

    {

        countdownTimer.stop();

        pause = true;

  a1.enabled = false; // <------------------------------------- HERE IS MY ADJUSTMENT to disable the radio button

  //mygroup1.mouseEnabled = false;

  //mygroup1.mouseChildren = false;

    }

    else

    {

        countdownTimer.start();

        pause = false;

Translate
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 ,
Dec 12, 2015 Dec 12, 2015

No you have to use the buttons names, for example:

btn1.enabled = btn2.enabled = btn3.enabled = false;

Translate
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
Guest
Dec 12, 2015 Dec 12, 2015

Thank you nezarov!!! You help me a lot! Keep spread good deeds, bro

Translate
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 ,
Dec 12, 2015 Dec 12, 2015
LATEST

Thank you so much sister and you're welcome.

Translate
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