This is my script at the moment
Code:
maxTB = 2000;
minTB = 500;
flickerDuration = 1500;
flickerTime = getNewTime();
this.onEnterFrame = function() {
curTime = getTimer();
if (curTime>=flickerTime) {
if (curTime<=flickerTime+flickerDuration) {
if (cnt>=3) {
flick._alpha = 60;
cnt = 0;
} else {
flick._alpha = 100;
cnt++;
}
} else {
flick._alpha = 100;
}
}
};
function getNewTime() {
return getTimer()+(Math.random()*(maxTB-minTB))+minTB;
}
//Button effect////
btn.onPress = function() {
getURL("http://www.hvc.nl", "_blank");
};
...