Load SWFS According to Time of Day.

About this file:

To begin with, this text and window are placed on the main FLA file. The moon/sun, clouds and hills are on an external file.

So now to the background, this file has actionscript to let you load a specific swf to the background of the main fla according to the TIME OF DAY . Right now it’s set to change at 8 a.m. and 7 p.m. but you can specify any hour, and as many hour changes and files as you want.

So i’ve made 2 files to simulate day and night. But to see them both you will have to change the clock of your computer. Just change a.m. to p.m and viceversa.

The elements of the backgrounds right now are given specific coordenates in actions script ( I’m including the FLA files ). But you can always make your own backgrounds without elements, just a plain dark and bright options, or anything else.

Your imagination is the key here. ;-)

Any Questions go to my profile and send me an email. :-)

// Just noticed that tha file is changing at 8 pm, not 7 pm…. // No bug…. just slipped my mind…. no need for update….. // Just set the time you want in the AS code….(commented).

free counters

by
by
by
by
by
by