<?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>jeffguthrie.com &#187; snippet</title>
	<atom:link href="http://www.jeffguthrie.com/tag/snippet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jeffguthrie.com</link>
	<description>web developer specializing in Flash work</description>
	<lastBuildDate>Fri, 18 Jun 2010 01:10:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Cast XMLNode to Boolean &#8211; AS3</title>
		<link>http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3</link>
		<comments>http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3#comments</comments>
		<pubDate>Thu, 15 Apr 2010 17:38:31 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=635</guid>
		<description><![CDATA[I was having a bit of difficulty making an xml node that had a value of true/false be cast properly as a Boolean. Turns out a good method is to when you are setting it, test it against a string value of true. The boolean will only be set to true if the string in [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert links in text to clickable links in Flash AS3</title>
		<link>http://www.jeffguthrie.com/convert-links-in-text-to-clickable-links-in-flash-as3</link>
		<comments>http://www.jeffguthrie.com/convert-links-in-text-to-clickable-links-in-flash-as3#comments</comments>
		<pubDate>Fri, 19 Mar 2010 04:02:58 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=579</guid>
		<description><![CDATA[I found this on StackOverflow but it took quite a bit of searching to find. Here you go: 1 title_str = title_str.replace&#40;/&#40;&#40;https?&#124;ftp&#124;telnet&#124;file&#41;:&#40;&#40;\/\/&#41;&#124;&#40;\\\\&#41;&#41;+&#91;\w\d:#@%\/;$()~_?\+-=\\\.&#38;]*)/g, &#34;&#60;u&#62;&#60;a href='$1'&#62;$1&#60;/a&#62;&#60;/u&#62;&#34;);]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/convert-links-in-text-to-clickable-links-in-flash-as3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop Down Menu with AS3</title>
		<link>http://www.jeffguthrie.com/drop-down-menu-with-as3</link>
		<comments>http://www.jeffguthrie.com/drop-down-menu-with-as3#comments</comments>
		<pubDate>Tue, 26 Jan 2010 18:14:43 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=583</guid>
		<description><![CDATA[Here is a code snippet that I have been using to create dropdown menus from movieclips in actionscript 3. I probably should try to wrap this up in a class as I bust out this snippet whenever I need this functionality. Usually when I have a &#8216;button&#8217; that I need to have open up a [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/drop-down-menu-with-as3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Load XML Document Class Example</title>
		<link>http://www.jeffguthrie.com/as3-load-xml-document-class-example</link>
		<comments>http://www.jeffguthrie.com/as3-load-xml-document-class-example#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:45:15 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=470</guid>
		<description><![CDATA[One thing that I do quite often in Flash is load XML. In order to save time, I separated a lot of that code out into external class files. I also created a snippet of code that calls those files in order to save time when I want to use them. (You will need Lee [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/as3-load-xml-document-class-example/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Draw Circle Animation Based on Time</title>
		<link>http://www.jeffguthrie.com/as3-draw-circle-animation-based-on-time</link>
		<comments>http://www.jeffguthrie.com/as3-draw-circle-animation-based-on-time#comments</comments>
		<pubDate>Sun, 01 Nov 2009 17:00:55 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[drawing api]]></category>
		<category><![CDATA[onEnterFrame]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=460</guid>
		<description><![CDATA[If you need to perform an animation and have it be standard when viewed across different machines, it is best to use an onEnterFrame event. I had a need in a project recently to draw a circle in a specified amount of time. I had been using the Timer class but found major time discrepancies [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/as3-draw-circle-animation-based-on-time/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Search &amp; Replace a Word</title>
		<link>http://www.jeffguthrie.com/search-replace-a-word-in-as3</link>
		<comments>http://www.jeffguthrie.com/search-replace-a-word-in-as3#comments</comments>
		<pubDate>Wed, 14 Oct 2009 22:53:07 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=454</guid>
		<description><![CDATA[In a project I was working on recently there was some information coming back from the database that I was displaying in a textfield. I didnt have any control of the text stored in the database and it was saying to &#8216;click the button above&#8230;&#8217; but in this new interface we were designing, the button [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/search-replace-a-word-in-as3/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Uppercase an input textfield&#8217;s contents automatically</title>
		<link>http://www.jeffguthrie.com/as3-uppercase-an-input-textfields-contents-automatically</link>
		<comments>http://www.jeffguthrie.com/as3-uppercase-an-input-textfields-contents-automatically#comments</comments>
		<pubDate>Fri, 25 Sep 2009 15:46:38 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=443</guid>
		<description><![CDATA[Here is a quick snippet on how to automatically set an input textfield&#8217;s text to uppercase. (If you do it on the KeyboardEvent.KEY_UP event, the text will initially show as lowercase than change to uppercase.) 1 2 3 4 5 text_txt.addEventListener&#40;Event.CHANGE, toUpperCase&#41; &#160; private function toUpperCase&#40;evt:Event&#41;:void &#123; evt.target.text = evt.target.text.toUpperCase&#40;&#41;; &#125;]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/as3-uppercase-an-input-textfields-contents-automatically/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Remove Spaces from a String</title>
		<link>http://www.jeffguthrie.com/as3-remove-spaces-from-a-string</link>
		<comments>http://www.jeffguthrie.com/as3-remove-spaces-from-a-string#comments</comments>
		<pubDate>Tue, 22 Sep 2009 02:23:40 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=409</guid>
		<description><![CDATA[I had a need to remove spaces from a string the other day so I came up with this helper utility and put it in a small Utility class. This could also be used to remove other characters. 1 2 3 4 5 6 7 8 9 10 package &#123; &#160; public class Utility &#123; [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/as3-remove-spaces-from-a-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Draw a Circle &#8211; AS3</title>
		<link>http://www.jeffguthrie.com/draw-a-circle-as3</link>
		<comments>http://www.jeffguthrie.com/draw-a-circle-as3#comments</comments>
		<pubDate>Fri, 18 Sep 2009 16:29:02 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[ACTIONSCRIPT 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=419</guid>
		<description><![CDATA[In a project I was on, I had a need to draw a circle in a certain amount of time and it proved to be a bit of a pain. So here is my code (with some ugly comments) that I used to do it. Code after the jump. DocumentClass Code: 1 2 3 4 [...]]]></description>
		<wfw:commentRss>http://www.jeffguthrie.com/draw-a-circle-as3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
