<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Build a Simple Countdown Timer in Flash</title>
	<atom:link href="http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/feed" rel="self" type="application/rss+xml" />
	<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html</link>
	<description>The How-to Magazine for Everything Adobe</description>
	<lastBuildDate>Fri, 11 May 2012 10:52:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Brian</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-36274</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 03 Nov 2011 19:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-36274</guid>
		<description>I&#039;ve followed this completely and the countdown simply does not work when I test it by pressing Ctr &amp; Enter. Help!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve followed this completely and the countdown simply does not work when I test it by pressing Ctr &amp; Enter. Help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-33756</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Mon, 08 Aug 2011 09:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-33756</guid>
		<description>Very informative. Thank you! I especially like the use of screen grabs. It made this tutorial very easy to follow. I&#039;ve bookmarked this website and will definitely be back.</description>
		<content:encoded><![CDATA[<p>Very informative. Thank you! I especially like the use of screen grabs. It made this tutorial very easy to follow. I&#8217;ve bookmarked this website and will definitely be back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-27228</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 21 Mar 2011 15:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-27228</guid>
		<description>Thanks for the script, love it. 

I just have couple of question is there a way to display text when the timer expires? And a simple way to add multiple years so it keeps ticking directly after the target date has passed?</description>
		<content:encoded><![CDATA[<p>Thanks for the script, love it. </p>
<p>I just have couple of question is there a way to display text when the timer expires? And a simple way to add multiple years so it keeps ticking directly after the target date has passed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregir</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-24684</link>
		<dc:creator>Gregir</dc:creator>
		<pubDate>Sat, 05 Feb 2011 22:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-24684</guid>
		<description>My mistake. I didn&#039;t note that date values are zero-based.</description>
		<content:encoded><![CDATA[<p>My mistake. I didn&#8217;t note that date values are zero-based.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregir</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-24683</link>
		<dc:creator>Gregir</dc:creator>
		<pubDate>Sat, 05 Feb 2011 22:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-24683</guid>
		<description>Followed this tutorial to the letter, and set the target date to two weeks in the future, but the clock reports there are 36 days left.</description>
		<content:encoded><![CDATA[<p>Followed this tutorial to the letter, and set the target date to two weeks in the future, but the clock reports there are 36 days left.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoli</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-21971</link>
		<dc:creator>Zoli</dc:creator>
		<pubDate>Mon, 13 Dec 2010 13:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-21971</guid>
		<description>Good working, but this is the good script:

var targetDate:Date = new Date(2011, 11, 13, 14);

addEventListener(Event.ENTER_FRAME, loop);

function loop(e:Event):void
{
	var nowDate:Date = new Date();
	var ms:Number = targetDate.getTime() - nowDate.getTime();
	var sec:Number = Math.floor(ms/1000);
	var min:Number = Math.floor(sec/60);
	var hr:Number = Math.floor(min/60);
	var day:Number = Math.floor(hr/24);
	
	sec = sec % 60;
	min = min % 60;
	hr = hr % 24;

	daytxt.text = (day &lt; 100) ? &quot;0&quot;+day.toString() : day.toString();
	hrtxt.text = (hr &lt; 10) ? &quot;0&quot;+hr.toString() : hr.toString();
	mintxt.text = (min &lt; 10) ? &quot;0&quot;+min.toString() : min.toString();
	sectxt.text = (sec &lt; 10) ? &quot;0&quot;+sec.toString() : sec.toString();
}</description>
		<content:encoded><![CDATA[<p>Good working, but this is the good script:</p>
<p>var targetDate:Date = new Date(2011, 11, 13, 14);</p>
<p>addEventListener(Event.ENTER_FRAME, loop);</p>
<p>function loop(e:Event):void<br />
{<br />
	var nowDate:Date = new Date();<br />
	var ms:Number = targetDate.getTime() &#8211; nowDate.getTime();<br />
	var sec:Number = Math.floor(ms/1000);<br />
	var min:Number = Math.floor(sec/60);<br />
	var hr:Number = Math.floor(min/60);<br />
	var day:Number = Math.floor(hr/24);</p>
<p>	sec = sec % 60;<br />
	min = min % 60;<br />
	hr = hr % 24;</p>
<p>	daytxt.text = (day &lt; 100) ? &quot;0&quot;+day.toString() : day.toString();<br />
	hrtxt.text = (hr &lt; 10) ? &quot;0&quot;+hr.toString() : hr.toString();<br />
	mintxt.text = (min &lt; 10) ? &quot;0&quot;+min.toString() : min.toString();<br />
	sectxt.text = (sec &lt; 10) ? &quot;0&quot;+sec.toString() : sec.toString();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MmE</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-16659</link>
		<dc:creator>MmE</dc:creator>
		<pubDate>Wed, 08 Sep 2010 23:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-16659</guid>
		<description>Hello!
How can I modified the code so that the countdown only shows the hours, minutes, seconds, without the days!
Thank u!</description>
		<content:encoded><![CDATA[<p>Hello!<br />
How can I modified the code so that the countdown only shows the hours, minutes, seconds, without the days!<br />
Thank u!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HiRize</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-15472</link>
		<dc:creator>HiRize</dc:creator>
		<pubDate>Sat, 19 Jun 2010 00:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-15472</guid>
		<description>I had problems with this script also, but as a total newb to Flash and any sort of scripting, I carefully checked my typing of the script. Sure enuf, I won the fight, as I kept finding small mistakes - spaces, colons, etc - that kept the script from working. Please don&#039;t give up on us, Lee. This is a great benefit. And besides, those that do get it, get it!
Thanks for your hard work.</description>
		<content:encoded><![CDATA[<p>I had problems with this script also, but as a total newb to Flash and any sort of scripting, I carefully checked my typing of the script. Sure enuf, I won the fight, as I kept finding small mistakes &#8211; spaces, colons, etc &#8211; that kept the script from working. Please don&#8217;t give up on us, Lee. This is a great benefit. And besides, those that do get it, get it!<br />
Thanks for your hard work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Blog Archive &#187; Countdown Timer</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-13370</link>
		<dc:creator>&#187; Blog Archive &#187; Countdown Timer</dc:creator>
		<pubDate>Wed, 14 Apr 2010 02:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-13370</guid>
		<description>[...] Countdown Okay, well I think I&#8217;m giving up on any flash tutorials that are complicated code like this, last few haven&#8217;t been working, and I&#8217;m at my wits end. I think I need to focus on visual stuff instead of use and functionality&#8230;.grrrr&#8230; The tutorial is from Layers Magizine and you can check it out by Clicking Here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Countdown Okay, well I think I&#8217;m giving up on any flash tutorials that are complicated code like this, last few haven&#8217;t been working, and I&#8217;m at my wits end. I think I need to focus on visual stuff instead of use and functionality&#8230;.grrrr&#8230; The tutorial is from Layers Magizine and you can check it out by Clicking Here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hough</title>
		<link>http://layersmagazine.com/build-a-simple-countdown-timer-in-flash.html/comment-page-1#comment-13368</link>
		<dc:creator>hough</dc:creator>
		<pubDate>Fri, 09 Apr 2010 15:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.layersmagazine.com/?p=10807#comment-13368</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Alex&#8230;<br />
correct:</p>
<p>var targetDate:Date = new Date(2010, 8, 25, 15);<br />
addEventListener(Event.ENTER_FRAME, loop);<br />
function loop(e:Event):void<br />
{<br />
var nowDate:Date = new Date():<br />
var ms:Number = targetDate.getTime() – nowDate.getTime();<br />
var sec:Number = Math.floor(ms/1000);<br />
var min:Number = Math.floor(sec/60);<br />
var hr:Number = Math.floor(min/60);<br />
var dary:Number = Math.floor(hr/24);<br />
sec = sec % 60;<br />
min = min % 60;<br />
hr = hr % 24;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

