ANALOGUE CLOCK
Flash CS3 e PHP
Description:
Analogue clock using a PHP script to retrieve the server time.
This is needed because it wouldn't be reliable to simply use the Date class of Actionscript as this would set the time to the user's time and not to the server hosting the SWF. For example, if we hosted the SWF on an Italian server, somebody in Japan will still see the European time regardless of the time shown on their machine.
Files package :
main.fla
Orologio.as
gettime.php
leggimi.txt
Thank you Biggsy for the smooth design.
Important
Open the file Orologio.as and set the preferred time difference to display at lines 29 and 30.
The default is 2 hours 0 minutes as Italy is under its own legal time difference thus GMT +2.
Set the URL in the PHP file at line 49.
Source files: