<?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>Being the adventures of a young man whose principal interests are... &#187; Stage</title>
	<atom:link href="http://juliankussman.com/blog/tag/stage/feed/" rel="self" type="application/rss+xml" />
	<link>http://juliankussman.com/blog</link>
	<description>Advertising, Interactive Art Direction, and usability.</description>
	<lastBuildDate>Tue, 27 Dec 2011 17:32:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>AS3 liquid layout class</title>
		<link>http://juliankussman.com/blog/2009/04/08/as3-liquid-layout-class/</link>
		<comments>http://juliankussman.com/blog/2009/04/08/as3-liquid-layout-class/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 01:16:20 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Liquid Layout]]></category>
		<category><![CDATA[Stage]]></category>
		<category><![CDATA[StageAlign]]></category>
		<category><![CDATA[StageALignTool]]></category>

		<guid isPermaLink="false">http://juliankussman.com/blog/?p=97</guid>
		<description><![CDATA[I&#8217;m sure everyone has needed one of these at one time or another. I just decided to finally get one together for myself. To use, you first call StageAlignTool.init() and pass in the stage, and optionally a minimum width and &#8230; <a href="http://juliankussman.com/blog/2009/04/08/as3-liquid-layout-class/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure everyone has needed one of these at one time or another. I just decided to finally get one together for myself.</p>
<p>To use, you first call StageAlignTool.init() and pass in the stage, and optionally a minimum width and a minimum height (defaults to 1024&#215;768).<br />
Next, you call StageAlignTool.registerLocation() and pass in the displayObject you wish to register, which position you wish it to lock to (StageAlignTool .TL means Top Left, StageAlignTool.MC means Middle Center), and optionally if you want it to stay relative to where it is now (true) or snap to the edge of the stage (false).<br />
The class automatically sets your stage scale mode to NO_SCALE and the stage align to TOP_LEFT. It also expects the display objects you pass it to have their registration points in the top left corner. </p>
<p> <a href='http://juliankussman.com/blog/wp-content/uploads/2009/04/stagealigntool.as'> Download </a></p>
<p>Usage:</p>
<p><code><br />
//StageAlignTool.init(Stage reference[, min width = 1024, min height = 768]);<br />
StageAlignTool.init(stage, 1024, 768);</p>
<p>//StageAlignTool.registerLocation(a DisplayObject, position to lock to[, stay relative to current = false]);<br />
//possible locations are [StageAlignTool.]TL, TC, TR, ML, MC, MR, BL, BC, BR</p>
<p>StageAlignTool.registerLocation(bg, StageAlignTool.MC);<br />
</code></p>
<p>Give it a try and tell me what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliankussman.com/blog/2009/04/08/as3-liquid-layout-class/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

