Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Analogue clock

This is a discussion on Analogue clock within the FlepStudio utilities forums, part of the Tutorials category; ANALOGUE CLOCK Flash CS3 e PHP Description: Analogue clock using a PHP script to retrieve the server time. This is ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Tutorials > FlepStudio utilities

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-12-07, 07:14
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,352
Blog Entries: 1
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, 209 views)


Last edited by Flep; 14-06-08 at 10:21.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 12-06-08, 22:30
Junior Member
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0
mkr10001 is on a distinguished road
Re: Analogue clock

how could you make a page of world clocks?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 14-06-08, 10:25
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,352
Blog Entries: 1
Rep Power: 6
Flep is on a distinguished road
Re: Analogue clock

You can work changing these properties:
Code:
private var fusoOre:Number=2;
private var fusoMinuti:Number=0;
fusoOre=how many hours of jet lag difference from GMT universal time
fusoMinuti=how many minutes of jet lag difference from GMT universal time
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Prevent clock refreshing conolan HELP free utilities 1 28-05-08 21:09
How to create a clock using Flash CS3 and PHP - first part Flep Tutorials 0 25-09-07 16:32
How to create a clock using Flash CS3 and PHP - second part Flep Tutorials 0 25-09-07 16:26


All times are GMT. The time now is 06:28.


Powered by vBulletin versione 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406