<?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: 3D rotation with Flash CS4</title>
	<atom:link href="http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/</link>
	<description>Resources, tutorials , tips &#38; tricks for RIA : Flex, Flash, Air, AS3</description>
	<lastBuildDate>Thu, 29 Jul 2010 05:04:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Richard</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-1536</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Mon, 12 Jul 2010 20:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-1536</guid>
		<description>Is there a way you could say how you got the image to stay in one place for the rotation? I built it just like you showed but it rotates on the farthest left side, when I just need it to rotate on the middle of the image. Also I&#039;d like to show you my code because I&#039;m trying to use it in a slide show however it only rotates the background so maybe point which is the correct object i need to rotate.</description>
		<content:encoded><![CDATA[<p>Is there a way you could say how you got the image to stay in one place for the rotation? I built it just like you showed but it rotates on the farthest left side, when I just need it to rotate on the middle of the image. Also I&#8217;d like to show you my code because I&#8217;m trying to use it in a slide show however it only rotates the background so maybe point which is the correct object i need to rotate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-1391</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 16 Jun 2010 20:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-1391</guid>
		<description>@CARLOS, Greensock has updated their package names.  Instead of 
import gs.*;
it should now be
import com.greensock.*;

  Also, I recommend consolidating the listener attachment/removal code to a single function and then call that function as needed.  This should be the new code block:

import com.greensock.TweenLite;

function attachListeners() {
    this.right_btn.addEventListener(MouseEvent.CLICK, rotateRight);
    this.left_btn.addEventListener(MouseEvent.CLICK, rotateLeft);
}

function detachListeners() {
    this.right_btn.removeEventListener(MouseEvent.CLICK, rotateRight);
    this.left_btn.removeEventListener(MouseEvent.CLICK, rotateLeft);
}

function rotateRight(e:Event) {
    detachListeners();
    TweenLite.to(picture_mc, 1,
                             { rotationY: picture_mc.rotationY - 180,
                               onComplete: function() { attachListeners(); }
                             });
}

function rotateLeft(e:Event) {
    detachListeners();
    TweenLite.to(picture_mc, 1,
                             { rotationY: picture_mc.rotationY + 180,
			       onComplete: function() { attachListeners(); }
                             });
}

attachListeners();</description>
		<content:encoded><![CDATA[<p>@CARLOS, Greensock has updated their package names.  Instead of<br />
import gs.*;<br />
it should now be<br />
import com.greensock.*;</p>
<p>  Also, I recommend consolidating the listener attachment/removal code to a single function and then call that function as needed.  This should be the new code block:</p>
<p>import com.greensock.TweenLite;</p>
<p>function attachListeners() {<br />
    this.right_btn.addEventListener(MouseEvent.CLICK, rotateRight);<br />
    this.left_btn.addEventListener(MouseEvent.CLICK, rotateLeft);<br />
}</p>
<p>function detachListeners() {<br />
    this.right_btn.removeEventListener(MouseEvent.CLICK, rotateRight);<br />
    this.left_btn.removeEventListener(MouseEvent.CLICK, rotateLeft);<br />
}</p>
<p>function rotateRight(e:Event) {<br />
    detachListeners();<br />
    TweenLite.to(picture_mc, 1,<br />
                             { rotationY: picture_mc.rotationY &#8211; 180,<br />
                               onComplete: function() { attachListeners(); }<br />
                             });<br />
}</p>
<p>function rotateLeft(e:Event) {<br />
    detachListeners();<br />
    TweenLite.to(picture_mc, 1,<br />
                             { rotationY: picture_mc.rotationY + 180,<br />
			       onComplete: function() { attachListeners(); }<br />
                             });<br />
}</p>
<p>attachListeners();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: firmana</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-1307</link>
		<dc:creator>firmana</dc:creator>
		<pubDate>Sat, 29 May 2010 02:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-1307</guid>
		<description>is that effect can work with array??</description>
		<content:encoded><![CDATA[<p>is that effect can work with array??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-1010</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 27 Mar 2010 00:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-1010</guid>
		<description>what would I have to add to get it to rotate from its center?</description>
		<content:encoded><![CDATA[<p>what would I have to add to get it to rotate from its center?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me2</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-894</link>
		<dc:creator>me2</dc:creator>
		<pubDate>Fri, 19 Feb 2010 21:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-894</guid>
		<description>any ways to have one image rotate/flip to another image or shape?</description>
		<content:encoded><![CDATA[<p>any ways to have one image rotate/flip to another image or shape?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-885</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 18 Feb 2010 03:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-885</guid>
		<description>went to download the engine but couldn&#039;t find any gs files. It is all in folders and there is only as files.</description>
		<content:encoded><![CDATA[<p>went to download the engine but couldn&#8217;t find any gs files. It is all in folders and there is only as files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khanh</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-531</link>
		<dc:creator>Khanh</dc:creator>
		<pubDate>Mon, 16 Nov 2009 15:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-531</guid>
		<description>The new 3d rotation in flash cs4 is great... the only downside is rotating vector art... the slightest 3d rotation will convert the vector into bitmap.  So far I have not found a work around for this.</description>
		<content:encoded><![CDATA[<p>The new 3d rotation in flash cs4 is great&#8230; the only downside is rotating vector art&#8230; the slightest 3d rotation will convert the vector into bitmap.  So far I have not found a work around for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-478</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 02 Nov 2009 13:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-478</guid>
		<description>@ Carlos : Read STEP 5</description>
		<content:encoded><![CDATA[<p>@ Carlos : Read STEP 5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-477</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Mon, 02 Nov 2009 10:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-477</guid>
		<description>could not find gs</description>
		<content:encoded><![CDATA[<p>could not find gs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saswot</title>
		<link>http://www.riacodes.com/flash/3d-rotation-with-flash-cs4/comment-page-1/#comment-460</link>
		<dc:creator>saswot</dc:creator>
		<pubDate>Thu, 29 Oct 2009 12:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=589#comment-460</guid>
		<description>hey does anybody know how to rotate an image or a text in 3d space at least y rotation with respect to mouse movement in flash........?????????????????????????????????????????????????????????????? plz help ria.........</description>
		<content:encoded><![CDATA[<p>hey does anybody know how to rotate an image or a text in 3d space at least y rotation with respect to mouse movement in flash&#8230;&#8230;..?????????????????????????????????????????????????????????????? plz help ria&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
