Flash // Time
- Started
- Last post
- 10 Responses
- Jamie
Is it possible to have a flash movie in a website which will display a specific image depending on the time of day?
If so, does anyone know of any example .fla's?
- jox0
you could always have a javascript randomizer showing different files depending on the time. But you asked for a flash timer, which makes this post pretty usesless, huh.
- SP™0
i have done this before.
try flashkit. "display a clip depending on the time on the internal clock."
- Mimio0
Flash player has a time/date method built in.
- shant0
check out the Date object in Flash help.
Hit F1, search for Date.
- unformatted0
yeah it's as simple as
if (date < this) {
do this;
} else {
do this;
}shift + f1 and date object. read.
- kpl0
to state what might be obvious but wasn't explicitly said in this thread:
yes it's possible, but you need to script it.
- unformatted0
here's a start
daDate = new Date();
//if the date is before 12 noon
if (daDate <= 11) {
do this;
} else { //the date is after 12 noon
do this;
}
- unformatted0
oops
daDate = new Date();
//if the date is before 12 noon
if (daDate.getHours() <= 11) {
do this;
} else { //the date is after 12 noon
do this;
}
- pixellove0
unformatted?
- unformatted0
pixellove?