<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Quick fix for scale-9 issues</title>
	<atom:link href="http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/</link>
	<description>Gamedev 2.0</description>
	<lastBuildDate>Mon, 23 Apr 2012 13:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alex Winx</title>
		<link>http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/comment-page-1/#comment-23718</link>
		<dc:creator>Alex Winx</dc:creator>
		<pubDate>Fri, 05 Mar 2010 04:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=209#comment-23718</guid>
		<description>Correct url:&lt;br&gt;&lt;a href=&quot;http://winxalex.blogspot.com/2010/03/how-to-with-scale9grid-problem.html&quot; rel=&quot;nofollow&quot;&gt;http://winxalex.blogspot.com/2010/03/how-to-wit...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Correct url:<br /><a href="http://winxalex.blogspot.com/2010/03/how-to-with-scale9grid-problem.html" rel="nofollow">http://winxalex.blogspot.com/2010/03/how-to-wit&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Winx</title>
		<link>http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/comment-page-1/#comment-23613</link>
		<dc:creator>Alex Winx</dc:creator>
		<pubDate>Thu, 04 Mar 2010 20:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=209#comment-23613</guid>
		<description>Correct url:&lt;br&gt;&lt;a href=&quot;http://winxalex.blogspot.com/2010/03/how-to-with-scale9grid-problem.html&quot; rel=&quot;nofollow&quot;&gt;http://winxalex.blogspot.com/2010/03/how-to-wit...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Correct url:<br /><a href="http://winxalex.blogspot.com/2010/03/how-to-with-scale9grid-problem.html" rel="nofollow">http://winxalex.blogspot.com/2010/03/how-to-wit&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Winx</title>
		<link>http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/comment-page-1/#comment-23586</link>
		<dc:creator>Alex Winx</dc:creator>
		<pubDate>Thu, 04 Mar 2010 10:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=209#comment-23586</guid>
		<description>I would like more OO aproach and using one bitmapData drawing on the Sprite instead of having 9 children Bitmaps.&lt;br&gt;Regards Alex&lt;br&gt;(please see)&lt;br&gt;&lt;a href=&quot;http://winxalex.blogspot.com/2010/03/multilanguage-support-as3-flash.html&quot; rel=&quot;nofollow&quot;&gt;http://winxalex.blogspot.com/2010/03/multilangu...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I would like more OO aproach and using one bitmapData drawing on the Sprite instead of having 9 children Bitmaps.<br />Regards Alex<br />(please see)<br /><a href="http://winxalex.blogspot.com/2010/03/multilanguage-support-as3-flash.html" rel="nofollow">http://winxalex.blogspot.com/2010/03/multilangu&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy Gilbert</title>
		<link>http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/comment-page-1/#comment-22833</link>
		<dc:creator>Troy Gilbert</dc:creator>
		<pubDate>Fri, 27 Nov 2009 06:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=209#comment-22833</guid>
		<description>If you want to scale from a different corner you need to move that corner to the origin. So, do this:
&lt;code&gt;
var dispObj:DisplayObject; // you want to scale this from the top right corner
var cont:Sprite = new Sprite;
cont.addChild(dispObj);
dispObj.x = -dispObj.width;
cont.scaleX = 2;
cont.scaleY = 2;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>If you want to scale from a different corner you need to move that corner to the origin. So, do this:<br />
<code><br />
var dispObj:DisplayObject; // you want to scale this from the top right corner<br />
var cont:Sprite = new Sprite;<br />
cont.addChild(dispObj);<br />
dispObj.x = -dispObj.width;<br />
cont.scaleX = 2;<br />
cont.scaleY = 2;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gazz</title>
		<link>http://troygilbert.com/2009/08/quick-fix-for-scale-9-issues/comment-page-1/#comment-22816</link>
		<dc:creator>Gazz</dc:creator>
		<pubDate>Thu, 26 Nov 2009 14:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/?p=209#comment-22816</guid>
		<description>Hi i have been trawling around trying to find if there is a method to be able to scale from either of the 4 corners. At the moment all i can find is that it only seems to scale from the top left corner? Can it scale from top right?</description>
		<content:encoded><![CDATA[<p>Hi i have been trawling around trying to find if there is a method to be able to scale from either of the 4 corners. At the moment all i can find is that it only seems to scale from the top left corner? Can it scale from top right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

