<?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"
	>
<channel>
	<title>Comments on: As3 Flip Vertical and Flip Horizontal</title>
	<atom:link href="http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<pubDate>Fri, 21 Nov 2008 08:47:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Eric Brito</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-560</link>
		<dc:creator>Eric Brito</dc:creator>
		<pubDate>Fri, 24 Oct 2008 19:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-560</guid>
		<description>Does anyone know how the Michael's code woulde be if the image had a bigger or smaller scale and a rotation angle?</description>
		<content:encoded><![CDATA[<p>Does anyone know how the Michael&#8217;s code woulde be if the image had a bigger or smaller scale and a rotation angle?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-456</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 27 Aug 2008 12:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-456</guid>
		<description>to switch back and forth, use this:

function flipHorizontal(dsp:DisplayObject):void
{
	var matrix:Matrix = dsp.transform.matrix;
	//matrix.a = -1;
	matrix.a *= -1;
	//matrix.tx = dsp.width + dsp.x;
	matrix.tx = -matrix.a * dsp.width + dsp.x;
	dsp.transform.matrix = matrix;
}
		
function flipVertical(dsp:DisplayObject):void
{
	var matrix:Matrix = dsp.transform.matrix;
	//matrix.d = -1;
	matrix.d *= -1;
	matrix.ty = -matrix.d * dsp.height + dsp.y;
	//matrix.ty = dsp.height + dsp.y;
	dsp.transform.matrix = matrix;
}</description>
		<content:encoded><![CDATA[<p>to switch back and forth, use this:</p>
<p>function flipHorizontal(dsp:DisplayObject):void<br />
{<br />
	var matrix:Matrix = dsp.transform.matrix;<br />
	//matrix.a = -1;<br />
	matrix.a *= -1;<br />
	//matrix.tx = dsp.width + dsp.x;<br />
	matrix.tx = -matrix.a * dsp.width + dsp.x;<br />
	dsp.transform.matrix = matrix;<br />
}</p>
<p>function flipVertical(dsp:DisplayObject):void<br />
{<br />
	var matrix:Matrix = dsp.transform.matrix;<br />
	//matrix.d = -1;<br />
	matrix.d *= -1;<br />
	matrix.ty = -matrix.d * dsp.height + dsp.y;<br />
	//matrix.ty = dsp.height + dsp.y;<br />
	dsp.transform.matrix = matrix;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-449</link>
		<dc:creator>g</dc:creator>
		<pubDate>Mon, 18 Aug 2008 23:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-449</guid>
		<description>xleon,

Your method doesn't work with video, while the others do.</description>
		<content:encoded><![CDATA[<p>xleon,</p>
<p>Your method doesn&#8217;t work with video, while the others do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xleon</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-446</link>
		<dc:creator>xleon</dc:creator>
		<pubDate>Fri, 15 Aug 2008 14:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-446</guid>
		<description>Hi, I´m not sure what your code does, but I think it´s easier like this:

vertical: 
dsp.scaleY = -dsp.scaleY;

horizontal: 
dsp.scaleX = -dsp.scaleX;</description>
		<content:encoded><![CDATA[<p>Hi, I´m not sure what your code does, but I think it´s easier like this:</p>
<p>vertical:<br />
dsp.scaleY = -dsp.scaleY;</p>
<p>horizontal:<br />
dsp.scaleX = -dsp.scaleX;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idoru</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-408</link>
		<dc:creator>Idoru</dc:creator>
		<pubDate>Wed, 02 Jul 2008 18:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-408</guid>
		<description>Yes, otherwise the fonts aren't eligible to be rasterized into bitmaps.</description>
		<content:encoded><![CDATA[<p>Yes, otherwise the fonts aren&#8217;t eligible to be rasterized into bitmaps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piggy</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-407</link>
		<dc:creator>piggy</dc:creator>
		<pubDate>Wed, 02 Jul 2008 16:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-407</guid>
		<description>ah... 
sorry :)
If you want to do something like flip with objects with text, you must use embed fonts.</description>
		<content:encoded><![CDATA[<p>ah&#8230;<br />
sorry <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
If you want to do something like flip with objects with text, you must use embed fonts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piggy</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-406</link>
		<dc:creator>piggy</dc:creator>
		<pubDate>Wed, 02 Jul 2008 15:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-406</guid>
		<description>Very nice example, but i have trouble:
when i'm trying to flip object with text (i.e. label, button) I don't see text after flipping.
After appplying flip once more, text appear back.
Any suggestions ?</description>
		<content:encoded><![CDATA[<p>Very nice example, but i have trouble:<br />
when i&#8217;m trying to flip object with text (i.e. label, button) I don&#8217;t see text after flipping.<br />
After appplying flip once more, text appear back.<br />
Any suggestions ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevincao</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comment-389</link>
		<dc:creator>kevincao</dc:creator>
		<pubDate>Wed, 18 Jun 2008 16:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147#comment-389</guid>
		<description>Hi, Thank u for sharing. I've post it to my blog for reference and send a trackback to you.
http://kevincao.com/2008/06/17/as3-flip-vertical-and-flip-horizontal</description>
		<content:encoded><![CDATA[<p>Hi, Thank u for sharing. I&#8217;ve post it to my blog for reference and send a trackback to you.<br />
<a href="http://kevincao.com/2008/06/17/as3-flip-vertical-and-flip-horizontal" rel="nofollow">http://kevincao.com/2008/06/17/as3-flip-vertical-and-flip-horizontal</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
