<?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: Custom cursor &#8220;bug&#8221; in ActionScript3</title>
	<atom:link href="http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/</link>
	<description>Cutting edge web &#38; mobile development. Ruby On Rails, Flash and related freshness.</description>
	<lastBuildDate>Fri, 01 Jan 2010 15:02:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Filippo Gregoretti</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-2840</link>
		<dc:creator>Filippo Gregoretti</dc:creator>
		<pubDate>Fri, 05 Jun 2009 19:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-2840</guid>
		<description>I just set in the custom mouse movieclip:
mouseEnable = false;
mouseChildren = false;
this does the trick ;)</description>
		<content:encoded><![CDATA[<p>I just set in the custom mouse movieclip:<br />
mouseEnable = false;<br />
mouseChildren = false;<br />
this does the trick <img src='http://www.eclips3media.com/workshop/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-1222</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Thu, 22 Jan 2009 18:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-1222</guid>
		<description>If you&#039;re ever attaching a linked movie clip (chock full of graphics on different frames) be sure to set mouseChildren = false in addition to mouseEnabled = false.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re ever attaching a linked movie clip (chock full of graphics on different frames) be sure to set mouseChildren = false in addition to mouseEnabled = false.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Managenta</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-1181</link>
		<dc:creator>Managenta</dc:creator>
		<pubDate>Sun, 04 Jan 2009 15:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-1181</guid>
		<description>Setting MouseEnabled from the custom mouse graphic to false -does- work, rhtx ^^

I have no idea why but it does work o.O maybe because the mouse-interactions of the movieclip are disabled, Flash doesn&#039;t recognize it as &quot;Going from one object to another&quot; when you&#039;re moving right and hovering over it</description>
		<content:encoded><![CDATA[<p>Setting MouseEnabled from the custom mouse graphic to false -does- work, rhtx ^^</p>
<p>I have no idea why but it does work o.O maybe because the mouse-interactions of the movieclip are disabled, Flash doesn&#8217;t recognize it as &#8220;Going from one object to another&#8221; when you&#8217;re moving right and hovering over it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dain</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-830</link>
		<dc:creator>dain</dc:creator>
		<pubDate>Tue, 07 Oct 2008 13:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-830</guid>
		<description>hey Dan,

you can try this:
cursor.x = mouseX + 1;
cursor.y = mouseY + 1;
as i`m not sure if this is actually the same as offsetting the thing inside the movieclip.

otherwise what i was writing about is how to tackle the rollover/rollout problem, it shouldn`t really happen in your case at all.

one thing though, is there any specific reason why you`re setting the cursor to visible on every mouse movement?</description>
		<content:encoded><![CDATA[<p>hey Dan,</p>
<p>you can try this:<br />
cursor.x = mouseX + 1;<br />
cursor.y = mouseY + 1;<br />
as i`m not sure if this is actually the same as offsetting the thing inside the movieclip.</p>
<p>otherwise what i was writing about is how to tackle the rollover/rollout problem, it shouldn`t really happen in your case at all.</p>
<p>one thing though, is there any specific reason why you`re setting the cursor to visible on every mouse movement?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dandanthepizzman</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-829</link>
		<dc:creator>dandanthepizzman</dc:creator>
		<pubDate>Tue, 07 Oct 2008 12:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-829</guid>
		<description>Hi, 

Ive had the same problem, I have the MouseMove listener registered to the stage and the custom cursor tracks the coordinates of the mouse in the MouseMove handler function. I was still getting flickering occasionally over movieclips behaving like buttons. 

I tried offsetting the reg of the movieclips inside the custom cursor MC and this has greatly reduced the frequency of the rollout event being fired, though it still happens now and then.

Im not sure if I understand what you were trying to say in the &#039;workaround&#039; paragraph, would you be kind enough to have a look at my code to see if im on the right track? 

Thanks Dan

stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);

initCursor();

function initCursor()
{
	cursor.mouseEnabled = false;
	Mouse.hide();
	addChild(cursor);
}
function mouseMoveHandler(event:MouseEvent):void 
{
	cursor.x = mouseX;
	cursor.y = mouseY;
	event.updateAfterEvent();
	cursor.visible = true;
}</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Ive had the same problem, I have the MouseMove listener registered to the stage and the custom cursor tracks the coordinates of the mouse in the MouseMove handler function. I was still getting flickering occasionally over movieclips behaving like buttons. </p>
<p>I tried offsetting the reg of the movieclips inside the custom cursor MC and this has greatly reduced the frequency of the rollout event being fired, though it still happens now and then.</p>
<p>Im not sure if I understand what you were trying to say in the &#8216;workaround&#8217; paragraph, would you be kind enough to have a look at my code to see if im on the right track? </p>
<p>Thanks Dan</p>
<p>stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);</p>
<p>initCursor();</p>
<p>function initCursor()<br />
{<br />
	cursor.mouseEnabled = false;<br />
	Mouse.hide();<br />
	addChild(cursor);<br />
}<br />
function mouseMoveHandler(event:MouseEvent):void<br />
{<br />
	cursor.x = mouseX;<br />
	cursor.y = mouseY;<br />
	event.updateAfterEvent();<br />
	cursor.visible = true;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dain</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-348</link>
		<dc:creator>dain</dc:creator>
		<pubDate>Sun, 16 Mar 2008 18:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-348</guid>
		<description>@kms: that&#039;s a good idea, much simpler to do :)

@rhtx: no, because the problem lies in the rollout event of the - say - draggable item triggering the cursor change. it happens because the hidden mouse cursor goes over the custom cursor image, which is just a &quot;neutral&quot; item like the stage, so it triggers the rollout as the cursor is not directly over the draggable item any more.</description>
		<content:encoded><![CDATA[<p>@kms: that&#8217;s a good idea, much simpler to do <img src='http://www.eclips3media.com/workshop/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@rhtx: no, because the problem lies in the rollout event of the &#8211; say &#8211; draggable item triggering the cursor change. it happens because the hidden mouse cursor goes over the custom cursor image, which is just a &#8220;neutral&#8221; item like the stage, so it triggers the rollout as the cursor is not directly over the draggable item any more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rhtx</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-301</link>
		<dc:creator>rhtx</dc:creator>
		<pubDate>Wed, 30 Jan 2008 23:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-301</guid>
		<description>Would setting the mouseEnabled property of the custom cursor to false do essentially the same thing?</description>
		<content:encoded><![CDATA[<p>Would setting the mouseEnabled property of the custom cursor to false do essentially the same thing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kms</title>
		<link>http://www.eclips3media.com/workshop/2007/12/custom-cursor-bug-in-actionscript3/comment-page-1/#comment-270</link>
		<dc:creator>kms</dc:creator>
		<pubDate>Tue, 01 Jan 2008 04:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/#comment-270</guid>
		<description>I just offset my custom cursor by one pixel in x &amp; y and it works fine. If you look closely, you can notice that rollover fires 1px too soon, but it&#039;s much better than flickering rollover/rollouts. Thanks for posting this... thought I was the only one having that problem.</description>
		<content:encoded><![CDATA[<p>I just offset my custom cursor by one pixel in x &amp; y and it works fine. If you look closely, you can notice that rollover fires 1px too soon, but it&#8217;s much better than flickering rollover/rollouts. Thanks for posting this&#8230; thought I was the only one having that problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
