# Day and night

**URL:** <https://forum.kirupa.com/t/day-and-night/64023>\
**Category:** Uncategorized\
**Created:** [September 12, 2004, 4:40pm UTC](https://forum.kirupa.com/t/day-and-night/64023 "2004-09-12T16:40:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![de\_stok](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@de\_stok](https://forum.kirupa.com/u/de_stok)\
**Post date:** [September 12, 2004, 4:40pm UTC](https://forum.kirupa.com/t/day-and-night/64023/1 "2004-09-12T16:40:05Z")

</div>

hello my problem is the next. on my website i wan’t to show the defference between day and night. So between 6am and 6pm it’ll load the daylight.swf and if else it’ll load the night version. I will start the website from a flashbutton so i think i have to put an actionscript within that file. so it will load the right movie at the right time for example i have a english kellogg’s website from special K  
[SPECIAL K WEBSITE](http://www.kelloggs.co.uk/specialk/flash.html) can someone help me please…

Thanx :gm: :gas: :thumb: :pirate3: :tie: :rd: :thumb: :!: :skull:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 7:51pm UTC](https://forum.kirupa.com/t/day-and-night/64023/2 "2004-09-12T19:51:52Z")

</div>

something like this

```auto

on (Release) {
time = new Date();
Hour = time.getHours();
if (Hour>6 && Hour<18) {
	//load daylight movie
} else {
	// load night movie	
}
}

```
