# Images depending on time

**URL:** <https://forum.kirupa.com/t/images-depending-on-time/42297>\
**Category:** Uncategorized\
**Created:** [February 7, 2004, 1:59pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297 "2004-02-07T13:59:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![novatake](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@novatake](https://forum.kirupa.com/u/novatake)\
**Post date:** [February 7, 2004, 1:59pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/1 "2004-02-07T13:59:40Z")

</div>

what i want to do is create a site that knows what the time is in your area via your pc clock hopefully and depending on the time puts a different background image up e.g. night time = night picture daytime = sunny daytime pic

any ideas

-Tom:toad: :bounce:

---

<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:** [February 7, 2004, 2:05pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/2 "2004-02-07T14:05:40Z")

</div>

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary153.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary153.html)

---

<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:** [February 7, 2004, 2:11pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/3 "2004-02-07T14:11:17Z")

</div>

cheers doesnt really show me how to pull up the different images for the time but ill have a fiddle about. probably figure it out sooner or later

-Tom  
cheers

---

<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:** [February 7, 2004, 2:19pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/4 "2004-02-07T14:19:06Z")

</div>

I didn’t tell you the exact code because I think you should try to find it by yourself 🙂

---

<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:** [February 7, 2004, 2:21pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/5 "2004-02-07T14:21:31Z")

</div>

cheers is the code actually in the actionscript dictionary u should give me a clue where to find it im not good at working stuff out

-Tom lol 🙂

---

<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:** [February 7, 2004, 2:33pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/6 "2004-02-07T14:33:39Z")

</div>

The code is not in the ActionScript dictionary I think. There are some examples there of the usage of the Date object though, and explanation on every method the Date object has available. Those should get you on the right track.

---

<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:** [February 7, 2004, 2:54pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/7 "2004-02-07T14:54:22Z")

</div>

cool cool yeh i kinda got it now mind u ill have to wait till 2nite lol or change my clock but i dontlike to mess

cheeras  
-Tom :)😉

---

<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:** [February 7, 2004, 2:57pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/8 "2004-02-07T14:57:09Z")

</div>

Haha, yeah 😛

I think it would be easier to change your clock, don’t you think ? 😉

---

<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:** [February 7, 2004, 11:20pm UTC](https://forum.kirupa.com/t/images-depending-on-time/42297/9 "2004-02-07T23:20:31Z")

</div>

you don’t have to depend on the clock to test,  
just hardcode the variables value to 10AM, test,  
then change to 5PM / midnite, whatever, test,  
if everything is ok, go back to the actual code…
