<?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: Tips &amp; Tricks 11: Customizable Flash Analogue Clock AS3</title>
	<atom:link href="http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html</link>
	<description>Useful and daily inspiration resources from web design, css, wordpress, graphic design, photography, illustrator, photoshop.</description>
	<lastBuildDate>Wed, 08 Feb 2012 07:38:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Martin</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-41552</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 25 Aug 2011 09:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-41552</guid>
		<description>Using a timer creates a delay between the flash loading and the clock displaying the correct time, personally if the application isnt a game or something that requires lots of processing then I dont see the harm in the clock being updated every frame.

Though another fix for this would be to call clockHandler(null); when starting the timer.</description>
		<content:encoded><![CDATA[<p>Using a timer creates a delay between the flash loading and the clock displaying the correct time, personally if the application isnt a game or something that requires lots of processing then I dont see the harm in the clock being updated every frame.</p>
<p>Though another fix for this would be to call clockHandler(null); when starting the timer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugh</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-1688</link>
		<dc:creator>Hugh</dc:creator>
		<pubDate>Thu, 12 Nov 2009 08:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-1688</guid>
		<description>The new code with timer will cause the second hand to ramdomly jump 2 seconds. Any one know why?</description>
		<content:encoded><![CDATA[<p>The new code with timer will cause the second hand to ramdomly jump 2 seconds. Any one know why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joyoge designers' bookmark</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-259</link>
		<dc:creator>joyoge designers' bookmark</dc:creator>
		<pubDate>Sat, 05 Sep 2009 16:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-259</guid>
		<description>nice tut, thanks for the tip..</description>
		<content:encoded><![CDATA[<p>nice tut, thanks for the tip..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jloa</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-226</link>
		<dc:creator>Jloa</dc:creator>
		<pubDate>Mon, 31 Aug 2009 12:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-226</guid>
		<description>U r welcome ^_^</description>
		<content:encoded><![CDATA[<p>U r welcome ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flashuser</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-222</link>
		<dc:creator>Flashuser</dc:creator>
		<pubDate>Sat, 29 Aug 2009 14:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-222</guid>
		<description>i updated the script...thanks for share</description>
		<content:encoded><![CDATA[<p>i updated the script&#8230;thanks for share</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jloa</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-221</link>
		<dc:creator>Jloa</dc:creator>
		<pubDate>Sat, 29 Aug 2009 14:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-221</guid>
		<description>var timer:Timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, clockHandler);
timer.start();

function clockHandler(event:TimerEvent)
{

	    // set hour
		var time = new Date();
		var hourHand = time.getHours();
		var minuteHand = time.getMinutes();
		var secondHand = time.getSeconds();
		
		hourHand_.rotation = 30 * hourHand + minuteHand / 2;
		minuteHand_.rotation = 6 * minuteHand;
		secondHand_.rotation = 6 * secondHand;
}


my code is 31 times optimized than yrs (if the fps is set to 31) ^_^</description>
		<content:encoded><![CDATA[<p>var timer:Timer = new Timer(1000);<br />
timer.addEventListener(TimerEvent.TIMER, clockHandler);<br />
timer.start();</p>
<p>function clockHandler(event:TimerEvent)<br />
{</p>
<p>	    // set hour<br />
		var time = new Date();<br />
		var hourHand = time.getHours();<br />
		var minuteHand = time.getMinutes();<br />
		var secondHand = time.getSeconds();</p>
<p>		hourHand_.rotation = 30 * hourHand + minuteHand / 2;<br />
		minuteHand_.rotation = 6 * minuteHand;<br />
		secondHand_.rotation = 6 * secondHand;<br />
}</p>
<p>my code is 31 times optimized than yrs (if the fps is set to 31) ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jloa</title>
		<link>http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3.html/comment-page-1#comment-220</link>
		<dc:creator>Jloa</dc:creator>
		<pubDate>Sat, 29 Aug 2009 14:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=1796#comment-220</guid>
		<description>2 author &gt;&gt; this.addEventListener(&quot;enterFrame&quot;,clockHandler);
I&#039;d adviced u to use Timer class usage with a 1000 ms timeout.
For example: i have a 31 fps movie, which means yr script will update the timing 31 timer per second = no need 4 that.</description>
		<content:encoded><![CDATA[<p>2 author &gt;&gt; this.addEventListener(&#8220;enterFrame&#8221;,clockHandler);<br />
I&#8217;d adviced u to use Timer class usage with a 1000 ms timeout.<br />
For example: i have a 31 fps movie, which means yr script will update the timing 31 timer per second = no need 4 that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.flashuser.net @ 2012-02-08 03:36:19 -->
