# Day and Night background

**URL:** <https://forum.kirupa.com/t/day-and-night-background/283709>\
**Category:** flash\
**Created:** [March 10, 2009, 9:05am UTC](https://forum.kirupa.com/t/day-and-night-background/283709 "2009-03-10T09:05:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThiZz](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@ThiZz](https://forum.kirupa.com/u/ThiZz)\
**Post date:** [March 10, 2009, 9:05am UTC](https://forum.kirupa.com/t/day-and-night-background/283709/1 "2009-03-10T09:05:56Z")

</div>

I have made my website:  
[http://cpower.co.il](http://cpower.co.il/)  
and I have to SWF’s one for the day and one for the night. I used a JS script to detect the user’s  
time and by that to activate the currect SWF but I find it hard when I want to update the FLA of the day.FLA I have also to update the night.FLA. Therefore, is there a way I can make that detection of user’s time using ActionSctipt in the FLA of so I will have one FLA and in the preloading time it will detect the time and by that will put the correct background?

Thanks.
