View Single Post
Old 04-24-2008   #10 (permalink)
unleash
Just unleashed!
 
unleash's Avatar
 
Join Date: Jul 2005
Location: Inbetween
Posts: 2,283
Blog Entries: 9

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");
};
...
__________________
"I haven't failed, I've just found out
10.000 ways that don't work."

~Thomas Edison~
unleash is offline   Reply With Quote