Hi guys,
How can I create a button that when you click on it will disappear for 10 to 20 sec then appear again?
Thanx
Dysan
Hi guys,
How can I create a button that when you click on it will disappear for 10 to 20 sec then appear again?
Thanx
Dysan
on(release){
hideMe = function(){
if (buttonName._visible = !buttonName._visible) clearInterval(buttonName.timer);
}
clearInterval(buttonName.timer);
buttonName.timer = setInterval(hideMe, 10000);
}
where buttonName is the instance name of the button this code was put on. After 10 seconds (10000 miliseconds), it will hide, then after another 10 it will reappear
[edit]
actually I think I missread… you probably want it to disappear immediately
on(release){
buttonName._visible = false;
showMe = function(){
buttonName._visible = true;
clearInterval(buttonName.timer);
}
clearInterval(buttonName.timer);
buttonName.timer = setInterval(showMe, 10000);
}
thank you so much…
:: Copyright KIRUPA 2024 //--