Has anyone seen a tutorial/script so the flash background on your site depending on the time it is eg midnight it would be black whereas in the day it would be sunny?
Printable View
Has anyone seen a tutorial/script so the flash background on your site depending on the time it is eg midnight it would be black whereas in the day it would be sunny?
Ugh!
I saw that not so long ago.
It uses the action script to runoff your windows click.
I'll see if I can find it for you.
Isn't that just with php, or combine php with flash ?
like
or something.. just an idea of how I would -try- and do it.PHP Code:$date = time(); //set the time script here
$morning = "set certain time";
$noon = "set certain time";
$evening = "set certain time";
$night = "set certain time";
if($date == $morning){
echo("bg_morning.jpg");
}elseif($date == $noon){
echo("bg_noon.jpg");
}elseif($date == $evening){
echo("bg_evening.jpg");
}elseif($date == $night){
echo("bg_night.jpg");
}else{
echo("bg_standard.jpg");
}
Ive done something like this a long time ago, but i wiped my hdd and its gone sorry ill try and find tutorial
Here is something I came accross:
http://www.swish-db.com/tutorials/view.php/tid/561
basic but it sais it should work ;)
EDIT:
Quote:
Originally Posted by http://www.swish-db.com/tutorials/view.php/tid/561
Hmmm, for some reason [Oli] it wont work ''/, It seems clean (apart from onFrame (1) {)but it just wont +rep anyway
I think it's a program much like Macromedia Flash 8 proffesional.
But less advanced I think.
edit=Quote:
What is SWiSH Max2?
SWiSH Max2 is a powerful Flash authoring application. Flash is a multimedia format for playing animation, video and audio on the web, mobile devices and more. SWiSH Max2 enables you to create Flash movies in a simple timeline based authoring environment, dragging and dropping video, audio, effects, images and more to create stunning multimedia movies. download free trial
yeah, look:
http://www.swishzone.com/products/ma...ripteditor.gif
I think it should work with actionscript too though ;o
I swear it is,
you use it in preloaders?
time() won't work. All time() does is echo the amount of seconds since the UNIX Epoch (1st January 1970). The output is something like '113235235'.
http://www.php.net/date/
Erm... Last time I checked you can pass variables to flash via PHP.
can't you use habbomeadows css? and when its at a certain time the banner image changes but you could make it the flash thing =]