# Dynamicly load pictures based on time of day?

**URL:** <https://forum.kirupa.com/t/dynamicly-load-pictures-based-on-time-of-day/115101>\
**Category:** Uncategorized\
**Created:** [July 5, 2004, 6:35pm UTC](https://forum.kirupa.com/t/dynamicly-load-pictures-based-on-time-of-day/115101 "2004-07-05T18:35:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlakBox](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blakbox/32/394_2.png) [@BlakBox](https://forum.kirupa.com/u/BlakBox)\
**Post date:** [July 5, 2004, 6:35pm UTC](https://forum.kirupa.com/t/dynamicly-load-pictures-based-on-time-of-day/115101/1 "2004-07-05T18:35:07Z")

</div>

I have an idea for my site that i got from my sprint phone. I want to be able to dynamicly load a picture based on what time of day it is, so in the morning it would be a sunny pic of joggers or something, noon it would be people smoking downtown and night would be something i dont know. the problem is i have no idea how to achieve this or even if its possible, i have read many tutorials on how to dynamicly load an image, im looking for a good one with a preloader for my images so if someone can point me in the right direction that would be great thanks :}

---

<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:** [July 5, 2004, 7:31pm UTC](https://forum.kirupa.com/t/dynamicly-load-pictures-based-on-time-of-day/115101/2 "2004-07-05T19:31:04Z")

</div>

Well you would have to check to see what time it is using the Date() function. Then you can use a conditional to tell flash to load the proper image depending on what time it is.

I would search for some date/time tutorials. Once you understand how to get the time you can just load your image using loadMovie();

---

<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:** [July 6, 2004, 2:24am UTC](https://forum.kirupa.com/t/dynamicly-load-pictures-based-on-time-of-day/115101/3 "2004-07-06T02:24:16Z")

</div>

This might help you:  
[http://www.kirupaforum.com/forums/showthread.php?t=61423&](http://www.kirupaforum.com/forums/showthread.php?t=61423&)
