Thread: Analogue clock
View Single Post

  #1 (permalink)  
Old 03-12-07, 08:14
Flep Flep is offline
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,490
Rep Power: 6
Flep is on a distinguished road
Analogue clock

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:
Attached Files
File Type: zip orologio_analogico.zip (22.9 KB, 335 views)


Last edited by Flep; 14-06-08 at 11:21..
Reply With Quote