<?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>Illumifi Interactive &#187; ActionScript 3.0 Snippets</title>
	<atom:link href="http://dev.illumifi.net/category/blog/snippets/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.illumifi.net</link>
	<description></description>
	<lastBuildDate>Fri, 28 Jan 2011 20:18:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>str_replace() function</title>
		<link>http://dev.illumifi.net/blog/snippets/as3/str_replace/</link>
		<comments>http://dev.illumifi.net/blog/snippets/as3/str_replace/#comments</comments>
		<pubDate>Fri, 22 May 2009 13:21:37 +0000</pubDate>
		<dc:creator>Cam</dc:creator>
				<category><![CDATA[ActionScript 3.0 Snippets]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://dev.illumifi.net/?p=447</guid>
		<description><![CDATA[function str_replace&#40;search, replace, string&#41; &#123; while&#40;string.indexOf&#40;search&#41; != -1&#41; &#123; var array = string.split&#40;search&#41;; string = array.join&#40;replace&#41;; &#125; return string; &#125; &#160; // Example var str = 'testing\r\nthis'; trace&#40;str&#41;; &#160; var newString = str; newString = str_replace&#40;&#34;\r&#34;, '', newString&#41;; newString = str_replace&#40;&#34;\n&#34;, ' ', newString&#41;; &#160; trace&#40;newString&#41;;]]></description>
		<wfw:commentRss>http://dev.illumifi.net/blog/snippets/as3/str_replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>randRange Function</title>
		<link>http://dev.illumifi.net/blog/snippets/as3/randrange/</link>
		<comments>http://dev.illumifi.net/blog/snippets/as3/randrange/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 19:48:54 +0000</pubDate>
		<dc:creator>Cam</dc:creator>
				<category><![CDATA[ActionScript 3.0 Snippets]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://dev.illumifi.net/?p=419</guid>
		<description><![CDATA[I find myself needing a random number between 2 numbers often. So I wrote this awhile ago and then go trotting back through code to find it. I thought it would be better if I just posted it here for quicker access function randRange&#40;minNum:Number, maxNum:Number&#41;:Number &#123; return &#40;Math.floor&#40;Math.random&#40;&#41; * &#40;maxNum - minNum + 1&#41;&#41; + [...]]]></description>
		<wfw:commentRss>http://dev.illumifi.net/blog/snippets/as3/randrange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>loadXML() Function</title>
		<link>http://dev.illumifi.net/blog/snippets/as3/loadxml/</link>
		<comments>http://dev.illumifi.net/blog/snippets/as3/loadxml/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 19:44:14 +0000</pubDate>
		<dc:creator>Cam</dc:creator>
				<category><![CDATA[ActionScript 3.0 Snippets]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://dev.illumifi.net/?p=352</guid>
		<description><![CDATA[This function takes an xml file and creates an object of its contents making it accessible after loading package &#123; // required classes import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; &#160; public class loadXML &#123; &#160; // supply path to xml file as only parameter private function loadXML&#40;file:String = null&#41; &#123; if &#40;!file&#41; &#123; return; &#125; [...]]]></description>
		<wfw:commentRss>http://dev.illumifi.net/blog/snippets/as3/loadxml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

