PDA

View Full Version : Flash - anyone seen this?



Oni
06-11-2007, 05:34 PM
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?

iTechnical
06-11-2007, 06:14 PM
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.

[Oli]
06-11-2007, 06:42 PM
Isn't that just with php, or combine php with flash ?

like



$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");
}


or something.. just an idea of how I would -try- and do it.

Blob
06-11-2007, 06:43 PM
;4094484']Isn't that just with php, or combine php with flash ?

like



$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");
}


or something.. just an idea of how I would -try- and do it.

time is bad as it updates every second, making it impossible.

[Oli]
06-11-2007, 06:46 PM
time is bad as it updates every second, making it impossible.

or using date(); ?

anyway I know its possible ;)

iTechnical
06-11-2007, 06:51 PM
;4094503']or using date(); ?

anyway I know its possible ;)

might be, im no good with PHP :(

mousey
06-11-2007, 06:51 PM
Ive done something like this a long time ago, but i wiped my hdd and its gone sorry ill try and find tutorial

Oni
06-11-2007, 06:52 PM
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.
If you could that would be great :)

I want it preferrably all flash ^^

[Oli]
06-11-2007, 07:17 PM
Here is something I came accross:

http://www.swish-db.com/tutorials/view.php/tid/561

basic but it sais it should work ;)

EDIT:



Hi,

I want to show you this awsome example, how to create time sensitive background for your web page.So, if the time is 10:00 the background=day and if the time is 22:00 the background=night.

That's all.Now test your *swf movie clip with changing the time on your computer.Enjoy!

iTechnical
06-11-2007, 07:37 PM
;4094647']Here is something I came accross:

http://www.swish-db.com/tutorials/view.php/tid/561

basic but it sais it should work ;)

EDIT:

Nice find. :D

Oni
06-11-2007, 07:58 PM
Hmmm, for some reason [Oli] it wont work ''/, It seems clean (apart from onFrame (1) {)but it just wont +rep anyway

[Oli]
06-11-2007, 08:07 PM
Hmmm, for some reason [Oli] it wont work ''/, It seems clean (apart from onFrame (1) {)but it just wont +rep anyway

I'll have a look into it ;)

Oni
06-11-2007, 08:08 PM
;4094879']I'll have a look into it ;)
Wait its swishmax not flash, not that I know what swishmax is ;)

[Oli]
06-11-2007, 08:15 PM
I think it's a program much like Macromedia Flash 8 proffesional.
But less advanced I think.


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

edit=
yeah, look:
http://www.swishzone.com/products/max/features/images/scripteditor.gif

I think it should work with actionscript too though ;o

Oni
06-11-2007, 08:33 PM
;4094918']I think it's a program much like Macromedia Flash 8 proffesional.
But less advanced I think.



edit=
yeah, look:
http://www.swishzone.com/products/max/features/images/scripteditor.gif

I think it should work with actionscript too though ;o
onFrame (1) { is definatly not a function ;), hmm although I think it still should work without it

iTechnical
06-11-2007, 08:44 PM
I swear it is,
you use it in preloaders?

Beau
07-11-2007, 05:17 AM
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/

Oni
07-11-2007, 09:29 AM
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/
This is flash ''/

Beau
07-11-2007, 09:41 AM
Erm... Last time I checked you can pass variables to flash via PHP.

Oni
07-11-2007, 10:24 AM
Erm... Last time I checked you can pass variables to flash via PHP.
I want it all in flash, there is already too much fiddling around with documents in what im creating.

DeejayMachoo$
07-11-2007, 11:12 AM
;4094647']Here is something I came accross:

http://www.swish-db.com/tutorials/view.php/tid/561

basic but it sais it should work ;)

EDIT:

oo that could be useful lol +rep for helping

Oni
07-11-2007, 11:18 AM
;4094918']I think it's a program much like Macromedia Flash 8 proffesional.
But less advanced I think.



edit=
yeah, look:
http://www.swishzone.com/products/max/features/images/scripteditor.gif

I think it should work with actionscript too though ;o
I cant get any of it to work :( I dont think it does, onframe isnt a recognised piece of actionscript.

RedCrisps
07-11-2007, 11:18 AM
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 =]

Want to hide these adverts? Register an account for free!