<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.7.1" -->
<rss version="0.92">
<channel>
	<title>Ryan Caillouet's Flash Blog</title>
	<link>http://elipticdesigns.com/flash</link>
	<description>Actionscript 3.0 Tricks and Hints</description>
	<lastBuildDate>Wed, 21 Jul 2010 15:52:37 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>AS3 Hashmap - Arraymap</title>
		<description><![CDATA[For a while I&#8217;ve been using classes I find online called &#8220;Hashmaps&#8221; which is basically a bunch of functions hooked up to a dictionary to manage keys/values. The only problem I have found is that when you try to retrieve all the items from your dictionary into an array, it won&#8217;t always been in the [...]]]></description>
		<link>http://elipticdesigns.com/flash/?p=38</link>
			</item>
	<item>
		<title>Actionscript Distance Between 2 Longitude Latitude Points</title>
		<description><![CDATA[Recently I&#8217;ve been doing alot of Google Maps stuff in flash, and have needed this more than once. This will give you the distance in miles or km between 2 Longitude and Latitude Points.

function getLatLngDistance&#40;$lat1:Number, $lng1:Number, $lat2:Number, $lng2:Number, $miles:Boolean=true&#41;:Number&#123;
		var pi80:Number = Math.PI/180;
		$lat1 *= pi80;
	      	$lng1 *= pi80;
	    [...]]]></description>
		<link>http://elipticdesigns.com/flash/?p=34</link>
			</item>
	<item>
		<title>Multiple Textfield Text Randomizer</title>
		<description><![CDATA[So you&#8217;ve probably seen these before, but this is my own version. This is one of those text effects you see where the textfields reveals with random letters. 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_text_735725964"
			class="flashmovie"
			width="500"
			height="400">
	<param name="movie" value="http://www.elipticdesigns.com/flash/ex/textRandomizer/text.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.elipticdesigns.com/flash/ex/textRandomizer/text.swf"
			name="fm_text_735725964"
			width="500"
			height="400">
	<!--<![endif]-->
		


	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Download the Source File Here: http://www.elipticdesigns.com/flash/ex/textRandomizer/TextRandomizer.zip
]]></description>
		<link>http://elipticdesigns.com/flash/?p=28</link>
			</item>
	<item>
		<title>Multiple ways to declare variables</title>
		<description><![CDATA[When declaring variables like objects or arrays, there is more than 1 way to declare them. I&#8217;m not exactly sure which way is faster, but I have used both scenarios in a variety of occasions. I&#8217;m putting this here just to help clarify they mean the same thing.

//Object Declaration 1
var objData:Object = new Object&#40;&#41;;
objData.fname = [...]]]></description>
		<link>http://elipticdesigns.com/flash/?p=20</link>
			</item>
	<item>
		<title>Actionscript naming Conventions</title>
		<description><![CDATA[Everyone seems to know the feeling of being lost knee deep in a mess of code. 
By using naming conventions you can help reduce the clutter&#8230;.or at least organize your variables. 
Here are some improvements that may help to keep your sanity.
1st Line: wrong way
2nd Line: right way
Numbers:  use &#8220;num&#8221;

var thing:Number = 1;
var numThing:Number [...]]]></description>
		<link>http://elipticdesigns.com/flash/?p=17</link>
			</item>
	<item>
		<title>Optimizing a For loop</title>
		<description><![CDATA[Alot of the time I spend developing flash, I&#8217;m always looking for ways to optimize my code and make it run faster. Take for instance the following code.

var arrStuff:Array = new Array&#40;&#41;;
arrStuff.push&#40;&#123;label:&#34;thing1&#34;&#125;&#41;;
arrStuff.push&#40;&#123;label:&#34;thing2&#34;&#125;&#41;;
&#160;
for&#40;var i:int=0; i&#60;arrStuff.length; i++&#41;&#123;
&#160;
&#125;

Should be written like so

var arrStuff:Array = new Array&#40;&#41;;
arrStuff.push&#40;&#123;label:&#34;thing1&#34;&#125;&#41;;
arrStuff.push&#40;&#123;label:&#34;thing2&#34;&#125;&#41;;
var numLen:int = arrStuff.length;
for&#40;var i:int=0; i&#60;numLen; i++&#41;&#123;
&#160;
&#125;

The reasoning for this is because it&#8217;s [...]]]></description>
		<link>http://elipticdesigns.com/flash/?p=13</link>
			</item>
</channel>
</rss>
