<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Tutorial Blog &#187; timer</title>
	<atom:link href="http://www.thetutorialblog.com/tag/timer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thetutorialblog.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Jul 2010 23:30:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://www.thetutorialblog.com</link>
<url>http://www.thetutorialblog.com/wp-content/plugins/maxblogpress-favicon/icons/favicon-28.ico</url>
<title>The Tutorial Blog</title>
</image>
		<item>
		<title>Timers in Actionscript 3</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/timers-in-actionscript-3/</link>
		<comments>http://www.thetutorialblog.com/flash-actionscript/timers-in-actionscript-3/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 15:37:04 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>
		<category><![CDATA[Text Tutorials]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[as]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=33</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	I'm writing this tutorial for someone who posted a comment on Basic Actionscript 3 Game Part 1 called sstng so if you would like to know how to do a certain thing in a language then feel free to post a comment and ask. Timers in Actionscript 3 are really simple and easy to use [...]


Related posts:<ol><li><a href='http://www.thetutorialblog.com/flash-actionscript/10-flash-and-actionscript-tutorials-for-the-beginner/' rel='bookmark' title='Permanent Link: 10 Flash and Actionscript Tutorials for the Beginner'>10 Flash and Actionscript Tutorials for the Beginner</a> <small>Flash is a piece of software that is used by...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fflash-actionscript%2Ftimers-in-actionscript-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fflash-actionscript%2Ftimers-in-actionscript-3%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="Timers in Actionscript 3" alt=" Timers in Actionscript 3" /><br />
			</a>
		</div>
<p>I'm writing this tutorial for someone who posted a comment on <a href="http://www.thetutorialblog.com/2008/04/06/basic-actionscript-3-game/">Basic Actionscript 3 Game Part 1</a> called sstng so if you would like to know how to do a certain thing in a language then feel free to post a comment and ask.</p>
<p>Timers in Actionscript 3 are really simple and easy to use and understand.</p>
<p>Sstng wanted to know how to create a timer that is triggered after 100 seconds.</p>
<p><span id="more-33"></span></p>
<p>Here is the code we would use to do this.<br />
<div id="code_div"><br />
<em>//set the time you want in milliseconds.</em><br />
<span style="color: #2020ff;">var</span> myTimer:<span style="color: #2020ff;">Timer</span> = <span style="color: #2020ff;">new Timer</span>(100000, 1); <em>//100 seconds</em><br />
myTimer.<span style="color: #2020ff;">addEventListener</span>(<span style="color: #2020ff;">TimerEvent.TIMER</span>, theAction); <em>//when the timer hits 100 seconds it will run the Action</em><br />
myTimer.<span style="color: #2020ff;">start()</span> <em>//start the timer</em></p>
<p><span style="color: #2020ff;">function</span> theAction(<span style="color: #2020ff;">event:TimerEvent</span>) :<span style="color: #2020ff;">void</span> {<br />
<span style="color: #2020ff;">trace</span>(<span style="color: #14a114;">"Timer Triggered"</span>); <em>//output a message so you know its working</em><br />
}<br />
</div></p>
<p>I hope this has helped.</p>


<p>Related posts:<ol><li><a href='http://www.thetutorialblog.com/flash-actionscript/10-flash-and-actionscript-tutorials-for-the-beginner/' rel='bookmark' title='Permanent Link: 10 Flash and Actionscript Tutorials for the Beginner'>10 Flash and Actionscript Tutorials for the Beginner</a> <small>Flash is a piece of software that is used by...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/flash-actionscript/timers-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
