Copy link to clipboard
Copied
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?
No you have to use the buttons names, for example:
btn1.enabled = btn2.enabled = btn3.enabled = false;
Copy link to clipboard
Copied
Use:
btnName.enabled = false; // to disable
And btnName.enabled = true; // to enable
Copy link to clipboard
Copied
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;
Copy link to clipboard
Copied
No you have to use the buttons names, for example:
btn1.enabled = btn2.enabled = btn3.enabled = false;
Copy link to clipboard
Copied
Thank you nezarov!!! You help me a lot! Keep spread good deeds, bro
Copy link to clipboard
Copied
Thank you so much sister and you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now