|
-
That web bloke
If you set up like this
myTime = new Date();
var seconds = myTime.getSeconds();
var minutes = myTime.getMinutes();
var hours = myTime.getHours();
you then have the 3 variables that you need
If you then include
mc1.loadMovie(hours+".jpg" );
your project will load 1 of 24 pre-named images into your mc1 dependant opon the hour.
You could extend it to
mc1.loadMovie(hours+"_"+minutes+".jpg" );
and label your images 7_20.jpg etc
However,
in the first example where we only use hours, you need only 24 images, for the second example you would need one for each minute, which would be clearly impractical.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|