<?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: Interactive Spin Actionscript Tutorial</title>
	<atom:link href="http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/</link>
	<description>Evan&#039;s Interactive Actionscript Exploration</description>
	<lastBuildDate>Fri, 12 Mar 2010 23:36:02 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: [Flash CS3] - Drehknopfprobleme ... - Flashforum</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-1269</link>
		<dc:creator>[Flash CS3] - Drehknopfprobleme ... - Flashforum</dc:creator>
		<pubDate>Fri, 08 Jan 2010 10:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-1269</guid>
		<description>[...] hab grad beim suchen folgenden Link gefunden:  Interactive Spin Actionscript Tutorial &#124; circlecube  Vielleicht hilft dir das weiter.  Greets Schnetty   __________________ Chaos ist nur eine [...]</description>
		<content:encoded><![CDATA[<p>[...] hab grad beim suchen folgenden Link gefunden:  Interactive Spin Actionscript Tutorial | circlecube  Vielleicht hilft dir das weiter.  Greets Schnetty   __________________ Chaos ist nur eine [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen James</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-1095</link>
		<dc:creator>Stephen James</dc:creator>
		<pubDate>Fri, 08 May 2009 17:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-1095</guid>
		<description>Thank you, Evan. I have looking for a navigation wheel that I could spin and this is perfect for it.</description>
		<content:encoded><![CDATA[<p>Thank you, Evan. I have looking for a navigation wheel that I could spin and this is perfect for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rihamfathy</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-1059</link>
		<dc:creator>rihamfathy</dc:creator>
		<pubDate>Tue, 07 Apr 2009 15:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-1059</guid>
		<description>i have a question!!
how can i make the object 3d and move it in all directions
(if i have a footage of anything such as a mobile and i want to make it 3d) how can i modify this script to do what i want??
thanks in advanced...</description>
		<content:encoded><![CDATA[<p>i have a question!!<br />
how can i make the object 3d and move it in all directions<br />
(if i have a footage of anything such as a mobile and i want to make it 3d) how can i modify this script to do what i want??<br />
thanks in advanced&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damion Murray</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-1018</link>
		<dc:creator>Damion Murray</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-1018</guid>
		<description>There are two solutions to the rotation problem. One involves using vector math to find angular displacements by first mapping flash&#039;s piece-wise rotational range of [0, -180][180, 0] to the standard [0, 360] rotational range typically used in math, applying the Vector Dot Product to find the smaller angle between two vectors and finally determining the direction of rotation (clockwise or counter-clockwise). This is the most robust solution since it is based on standard mathematical models of rotation. But most Flash Developers coming from a design background may have trouble grappling with its more technical aspects. The second, more accessible solution involves exploiting the relationships between nested clips. But that&#039;s all I am going to say on the matter. Half the fun is figuring stuff out for oneself.</description>
		<content:encoded><![CDATA[<p>There are two solutions to the rotation problem. One involves using vector math to find angular displacements by first mapping flash&#8217;s piece-wise rotational range of [0, -180][180, 0] to the standard [0, 360] rotational range typically used in math, applying the Vector Dot Product to find the smaller angle between two vectors and finally determining the direction of rotation (clockwise or counter-clockwise). This is the most robust solution since it is based on standard mathematical models of rotation. But most Flash Developers coming from a design background may have trouble grappling with its more technical aspects. The second, more accessible solution involves exploiting the relationships between nested clips. But that&#8217;s all I am going to say on the matter. Half the fun is figuring stuff out for oneself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-924</link>
		<dc:creator>Gerald</dc:creator>
		<pubDate>Tue, 07 Oct 2008 01:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-924</guid>
		<description>Great tutorial. One question, how would I make the knob only spin a certain degree? Say if I wanted this to be a volume knob and would want it to only spin a certain degree as if turning the knob  on a speaker amplifier. Thanks!</description>
		<content:encoded><![CDATA[<p>Great tutorial. One question, how would I make the knob only spin a certain degree? Say if I wanted this to be a volume knob and would want it to only spin a certain degree as if turning the knob  on a speaker amplifier. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-708</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Wed, 02 Jul 2008 03:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-708</guid>
		<description>thanks you guys both. This is perfect for what i am doing. (making tutorials for a gas-fitting school), i am going to try apply this rotation to one of the gas taps. Just have to figure out how to make a &#039;maximum&#039; amount of turns.</description>
		<content:encoded><![CDATA[<p>thanks you guys both. This is perfect for what i am doing. (making tutorials for a gas-fitting school), i am going to try apply this rotation to one of the gas taps. Just have to figure out how to make a &#8216;maximum&#8217; amount of turns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-331</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 24 May 2008 21:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-331</guid>
		<description>Here&#039;s a fix, albeit not perfect, to the above mentioned problem. Within the onEnterFrame actions, find the line that says:

accr = ((r-oldr)+accr)/2;

and change it to this....

if (r-oldr &gt; 160 &#124;&#124; r-oldr &lt; -160){
	accr = ((0)+accr);
}else{
	accr = ((r-oldr)+accr)/2;
}

I&#039;m in the process of implementing this code into a project. When it&#039;s ready I&#039;ll try to remember to link it.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a fix, albeit not perfect, to the above mentioned problem. Within the onEnterFrame actions, find the line that says:</p>
<p>accr = ((r-oldr)+accr)/2;</p>
<p>and change it to this&#8230;.</p>
<p>if (r-oldr &gt; 160 || r-oldr &lt; -160){<br />
	accr = ((0)+accr);<br />
}else{<br />
	accr = ((r-oldr)+accr)/2;<br />
}</p>
<p>I&#8217;m in the process of implementing this code into a project. When it&#8217;s ready I&#8217;ll try to remember to link it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-159</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Mon, 17 Mar 2008 15:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-159</guid>
		<description>Thanks for catching that Zac, I hadn&#039;t noticed that hiccup in there...
It seems to be when it is calculating the acceleration as you drag through the negative x-axis (from the origin of the knob). It&#039;s because I&#039;m using the difference between old rotation and current rotation to find the acceleration (line 32), and when oldr is -179 and new is 180 that makes for quite a bit of acceleration... accr = ((r - oldr) + accr)/2; ...  it helps I guess that it&#039;s averaged with the old accr, but it doesn&#039;t correct it by any means. 
When I have some time I&#039;ll have to get in and map the accr calculation correctly to see the values as circular, ... 178, 179, 180, -179, -178 ...</description>
		<content:encoded><![CDATA[<p>Thanks for catching that Zac, I hadn&#8217;t noticed that hiccup in there&#8230;<br />
It seems to be when it is calculating the acceleration as you drag through the negative x-axis (from the origin of the knob). It&#8217;s because I&#8217;m using the difference between old rotation and current rotation to find the acceleration (line 32), and when oldr is -179 and new is 180 that makes for quite a bit of acceleration&#8230; accr = ((r &#8211; oldr) + accr)/2; &#8230;  it helps I guess that it&#8217;s averaged with the old accr, but it doesn&#8217;t correct it by any means.<br />
When I have some time I&#8217;ll have to get in and map the accr calculation correctly to see the values as circular, &#8230; 178, 179, 180, -179, -178 &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac</title>
		<link>http://blog.circlecube.com/2008/03/tutorial/interactive-spin-actionscript-tutorial/#comment-158</link>
		<dc:creator>Zac</dc:creator>
		<pubDate>Mon, 17 Mar 2008 06:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/14/interactive-spin-actionscript-tutorial/#comment-158</guid>
		<description>Hi Evan

Grab the knob and rotate it all the way around for one revolution without letting go.

There is a rather violent movement when the user rotates the knob all the way through x &lt; 0 and when y passes through 0 (positive to negative or negative to positive). It jumps to the other side (180 deg away) and then rapidly comes back again.

I would suggest not using atan2 and using only sine to determine your rotation.</description>
		<content:encoded><![CDATA[<p>Hi Evan</p>
<p>Grab the knob and rotate it all the way around for one revolution without letting go.</p>
<p>There is a rather violent movement when the user rotates the knob all the way through x &lt; 0 and when y passes through 0 (positive to negative or negative to positive). It jumps to the other side (180 deg away) and then rapidly comes back again.</p>
<p>I would suggest not using atan2 and using only sine to determine your rotation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->