I was wondering if there is any way in flash, that you can disable a button for a few seconds, so that it cannot be clicked again.
You see i am using dynamic transitions to load external swf’s, and if the user clicks a button whilst the external animation is playing nothing will happen, giving them the impression that the button doesn’t work.
I`m sure you should beable to use the button.enabled property somewhere within the script you have. Anyway this will disable myButton for 5seconds
function dontwork(btn) {
btn.enabled = false;
clearinterval(myinterval);
myinterval2 = setInterval(getworking, 5000, btn);
}
function getworking(btn1) {
btn1.enabled = true;
clearInterval(myinterval2);
}
myinterval = setInterval(dontwork, 20, myButton);