<?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: Eyes following mouse cursor AS3</title>
	<atom:link href="http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html</link>
	<description>Useful and daily inspiration resources from web design, css, wordpress, graphic design, photography, illustrator, photoshop.</description>
	<lastBuildDate>Wed, 08 Feb 2012 07:38:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: makedonskii</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-83858</link>
		<dc:creator>makedonskii</dc:creator>
		<pubDate>Mon, 28 Nov 2011 18:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-83858</guid>
		<description>Thanks a lot! It is very nice!!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot! It is very nice!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kurti</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-82180</link>
		<dc:creator>kurti</dc:creator>
		<pubDate>Sat, 26 Nov 2011 12:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-82180</guid>
		<description>thanks a lot! it really attracting one, especially for those who watching the result only!! :)</description>
		<content:encoded><![CDATA[<p>thanks a lot! it really attracting one, especially for those who watching the result only!! <img src='http://www.flashuser.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gab</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-80935</link>
		<dc:creator>gab</dc:creator>
		<pubDate>Fri, 25 Nov 2011 04:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-80935</guid>
		<description>hi!
when i am changing my mouse into something else, it is no longer clicking on the buttons that i had created! 

can i turn the mouse into an image but still be able to have the mouse function ? 

thank you !</description>
		<content:encoded><![CDATA[<p>hi!<br />
when i am changing my mouse into something else, it is no longer clicking on the buttons that i had created! </p>
<p>can i turn the mouse into an image but still be able to have the mouse function ? </p>
<p>thank you !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ehsan</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-58869</link>
		<dc:creator>ehsan</dc:creator>
		<pubDate>Thu, 13 Oct 2011 12:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-58869</guid>
		<description>function eyesFollow(e:MouseEvent):void
{
	for (var j:Number=1; j&gt;4; j++)
	{
		var p:*=j;
		var i:String=&quot;p&quot;;
		var ai = mouseY - eyei.y;
		var bi = mouseX - eyei.x;
		var radiansi = Math.atan2(ai,bi);
		var degreesi = radiansi / (Math.PI / 180);
		eyei.rotation = degreesi;
	Mouse.hide();
	cookie.visible = true;
	cookie.x = mouseX;
	cookie.y = mouseY;
	}
	
	Mouse.hide();
	cookie.visible = true;
	cookie.x = mouseX;
	cookie.y = mouseY;
}

is true?</description>
		<content:encoded><![CDATA[<p>function eyesFollow(e:MouseEvent):void<br />
{<br />
	for (var j:Number=1; j&gt;4; j++)<br />
	{<br />
		var p:*=j;<br />
		var i:String=&#8221;p&#8221;;<br />
		var ai = mouseY &#8211; eyei.y;<br />
		var bi = mouseX &#8211; eyei.x;<br />
		var radiansi = Math.atan2(ai,bi);<br />
		var degreesi = radiansi / (Math.PI / 180);<br />
		eyei.rotation = degreesi;<br />
	Mouse.hide();<br />
	cookie.visible = true;<br />
	cookie.x = mouseX;<br />
	cookie.y = mouseY;<br />
	}</p>
<p>	Mouse.hide();<br />
	cookie.visible = true;<br />
	cookie.x = mouseX;<br />
	cookie.y = mouseY;<br />
}</p>
<p>is true?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Harner</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-51308</link>
		<dc:creator>Joseph Harner</dc:creator>
		<pubDate>Wed, 21 Sep 2011 07:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-51308</guid>
		<description>I thought I should mention to all viewers that this setup is not valid if performed inside of an object&#039;s class. For example: if you created a new class for the eye MovieClips, the method would look like this:
var radians = Math.atan2(mouseY,mouseX);
var degrees = radians / (Math.PI / 180);
this.rotation += degrees;


Key things to note: you no longer subtract mouse and object position, because when you call for the mouse&#039;s position while within an object, the position returned is relative to the object. As such when you calculate the rotation to the mouse with this method, you receive the method relative to the rotation of your object. thus, we add the calculated degree to our current rotation, rather than replacing it.</description>
		<content:encoded><![CDATA[<p>I thought I should mention to all viewers that this setup is not valid if performed inside of an object&#8217;s class. For example: if you created a new class for the eye MovieClips, the method would look like this:<br />
var radians = Math.atan2(mouseY,mouseX);<br />
var degrees = radians / (Math.PI / 180);<br />
this.rotation += degrees;</p>
<p>Key things to note: you no longer subtract mouse and object position, because when you call for the mouse&#8217;s position while within an object, the position returned is relative to the object. As such when you calculate the rotation to the mouse with this method, you receive the method relative to the rotation of your object. thus, we add the calculated degree to our current rotation, rather than replacing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Domingo</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-19974</link>
		<dc:creator>Alex Domingo</dc:creator>
		<pubDate>Sun, 19 Jun 2011 14:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-19974</guid>
		<description>Anyone has script that human faces follow the mouse. It will have nine direction or points or graphic face which has the following view point: front, left, right, down, up, left-up, left-down, right-up and right-down. It will have nine images of one person and one of these nine image will show-up in front wherever the mouse is.</description>
		<content:encoded><![CDATA[<p>Anyone has script that human faces follow the mouse. It will have nine direction or points or graphic face which has the following view point: front, left, right, down, up, left-up, left-down, right-up and right-down. It will have nine images of one person and one of these nine image will show-up in front wherever the mouse is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-2033</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sun, 22 Nov 2009 16:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-2033</guid>
		<description>Hey brilliant tutorial! I have a question: 
I am making a platform game and want to know if there is any way of making the eyes follow a character as it moves around the level?
Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hey brilliant tutorial! I have a question:<br />
I am making a platform game and want to know if there is any way of making the eyes follow a character as it moves around the level?<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _mark</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-1467</link>
		<dc:creator>_mark</dc:creator>
		<pubDate>Thu, 05 Nov 2009 11:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-1467</guid>
		<description>nice alien.  eheheha</description>
		<content:encoded><![CDATA[<p>nice alien.  eheheha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samana</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-633</link>
		<dc:creator>Samana</dc:creator>
		<pubDate>Wed, 30 Sep 2009 14:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-633</guid>
		<description>thanks you</description>
		<content:encoded><![CDATA[<p>thanks you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tutorial Lounge</title>
		<link>http://www.flashuser.net/flash-actionscript-as3/eyes-following-mouse-cursor-as3.html/comment-page-1#comment-626</link>
		<dc:creator>Tutorial Lounge</dc:creator>
		<pubDate>Tue, 29 Sep 2009 08:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashuser.net/?p=2322#comment-626</guid>
		<description>really like your work.</description>
		<content:encoded><![CDATA[<p>really like your work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.flashuser.net @ 2012-02-08 03:25:21 -->
