Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Flash CS3 CountDown

This is a discussion on Flash CS3 CountDown within the FlepStudio utilities forums, part of the Tutorials category; FlepStudio has created a new free utility, a Flash CS3 coutndown manageable by an external XML file. The utility is ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-09-08, 06:12
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,488
Rep Power: 6
Flep is on a distinguished road
Flash CS3 CountDown

FlepStudio has created a new free utility, a Flash CS3 coutndown manageable by an external XML file.
The utility is supported by a server-side script (gettime.php) as to develop a good countdown is necessary to get the time from the server.
This is because if we get time by the user machine (the one that makes the class Date of Actionscript without server side scripting ) not all users would the same time remaining under Zone time of the user.
This countdown allows you to show the same time remaining for any user any area of the world he is.
That's why I get time from the server.
Let me give you an example:
If we want to show the remaining time from now till 31 December 2008.
Just open file set_up.xml..., as following:
HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<countdown>
	<yearToExpire>2008</yearToExpire>
	<monthToExpire>12</monthToExpire>
	<dayToExpire>31</dayToExpire>
	<hourToExpire>23</hourToExpire>
	<minutesToExpire>59</minutesToExpire>
	<secondsToExpire>59</secondsToExpire>
	<timeZoneHours>+2</timeZoneHours>
	<timeZoneMinutes>0</timeZoneMinutes>
	<expiredText>EXPIRED !</expiredText>
	<PHPurl>http://www.flepstudio.org/utilita/CountDown/gettime.php</PHPurl>
</countdown>
yearToExpire: set the year of the expiring day
monthToExpire: month of the expiring day
dayToExpire: day of the expiring day
hourToExpire: hours of the expiring day
minutesToExpire: minutes of the expiring day
secondsToExpire: seconds of the expiring day
timeZoneHours: set your timezone( in my case +2 in Italy )
timeZoneMinutes: set if necessary minutes of your time zone (some area in the world can have for example +9.30, in this case would include 30 in this field))
expiredText: the text that will be show when the CountDown expires.
PHPurl: the url of the gettime.php file ( we get the server time with it )

gettime.php:
PHP Code:
<?php
header
("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");
echo 
"time=" time();
?>
Result:






At this moment users Italians, Americans, Japanese and any other part of the world sees the same time remaining because it has been calculated on the basis of time of the server where this domain is located, the time zone of the area where I am and the time zone of the user's machine.

Source files:
Attached Files
File Type: zip CountDown.zip (20.8 KB, 789 views)

__________________

 


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 !

Last edited by Flep; 09-09-08 at 20:39..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 09-09-08, 11:38
Junior Member
 
Join Date: Aug 2008
Posts: 1
Rep Power: 0
johntropea is on a distinguished road
Re: Flash CS3 CountDown

thanks for share
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 09-09-08, 14:30
Junior Member
 
Join Date: Dec 2007
Posts: 10
Rep Power: 0
aloysiochagas is on a distinguished road
Re: Flash CS3 CountDown

OMG! Nice job! =))

Muito bom trabalho!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 09-09-08, 17:12
Junior Member
 
Join Date: Jun 2008
Posts: 4
Rep Power: 0
gandhidk is on a distinguished road
Thumbs up Re: Flash CS3 CountDown

Wow!! Flep, you are the best. Great work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 09-09-08, 18:03
Junior Member
 
Join Date: Jun 2008
Posts: 3
Rep Power: 0
Alasandro is on a distinguished road
Re: Flash CS3 CountDown

From what I have seen thuis far... Great Job... but... I downloaded the source file (countdown.zip) and when I tried opening it I get a warning telling me the file is corrupted. Could you check this out, I would love to have at this utility.

SERIO
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #6 (permalink)  
Old 09-09-08, 18:24
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,488
Rep Power: 6
Flep is on a distinguished road
Re: Flash CS3 CountDown

Quote:
Originally Posted by Alasandro View Post
From what I have seen thuis far... Great Job... but... I downloaded the source file (countdown.zip) and when I tried opening it I get a warning telling me the file is corrupted. Could you check this out, I would love to have at this utility.

SERIO
Try this one and let me know please:
Attached Files
File Type: zip CountDown.zip (20.3 KB, 38 views)

__________________

 


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

  #7 (permalink)  
Old 09-09-08, 18:35
Junior Member
 
Join Date: Jun 2008
Posts: 3
Rep Power: 0
Alasandro is on a distinguished road
Re: Flash CS3 CountDown

I still get the following message when trying to open the file: "The Compressed (zipped) Folder is invalid or corrupted."

SERIO
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 09-09-08, 18:44
Junior Member
 
Join Date: Jun 2008
Posts: 3
Rep Power: 0
Alasandro is on a distinguished road
Re: Flash CS3 CountDown

Never mind... I got it to open by moving to download from another computer. Thanks!

SERIO
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 09-09-08, 20:32
Junior Member
 
Join Date: Mar 2008
Posts: 3
Rep Power: 0
grimurnet is on a distinguished road
Re: Flash CS3 CountDown

this is great, but could you post the php gettime script, that would be great..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 09-09-08, 20:38
Junior Member
 
Join Date: Mar 2008
Posts: 3
Rep Power: 0
grimurnet is on a distinguished road
Re: Flash CS3 CountDown

Great job, could you post the php file, that would be great
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Tags
countdown

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
Problema Countdown - conto Rovescia Mestriotes AIUTO utilità free 0 29-09-08 12:25


All times are GMT. The time now is 18:33.


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


FlepStudio
by Filippo Lughi
P.IVA 03605860406