Daylight

Hi there… on my website i want to put in a funny detail. i made a movie with a nice cartoon landscape. what i wan’t to do is make a difference between night and day so if someones come in at 3 am it’s dark and om 3 pm it’s a normal blue sky to check my website and get an idea about it check www.milkandcookiefactory.com i know there is a code so i can set the time but can i make it diferent so my movie changes… i hope so. if u don’t understand my question please answer this message.

Regards Jos

something like this should work, you just have to adjust it to your needs.


myTime = new Date();
nHours = myTime.getHours();
this.onEnterFrame = function() {
	if (nHours == 12) {
		trace("ok");
	} else {
		myColor = new Color(mc);
		myColor.setRGB(0x990000);
	}
};

sorry maybe i wrote it wrong but i have to change the backgroundcolour. to dark blue at night ios that possible? and how?

I’m not too sure about that, the only way i can think of is make the MC the size of the page and change that color…