<?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: An Even Better AS3 OOP Flash Custom Cursor</title>
	<atom:link href="http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/feed" rel="self" type="application/rss+xml" />
	<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor</link>
	<description>Learn to Make Flash Games, Applications, and Websites</description>
	<pubDate>Sat, 31 Jul 2010 11:56:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alf</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-4789</link>
		<dc:creator>Alf</dc:creator>
		<pubDate>Tue, 09 Mar 2010 11:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-4789</guid>
		<description>Event.ADDED is also dispatched for example if you hold your mouse over a button, and when other movieclips contains motion tweens. So basicly this updateStack function is called many times unnecessarily! I'm guessing updateStack doesnt cost a lot of cpu, but still this is worth mentioning :)

adobe docs: "The Event.ADDED constant defines the value of the type property of an added event object."

Maybe Event.ADDED_TO_STAGE is possible to use? I havent looked into that.</description>
		<content:encoded><![CDATA[<p>Event.ADDED is also dispatched for example if you hold your mouse over a button, and when other movieclips contains motion tweens. So basicly this updateStack function is called many times unnecessarily! I&#8217;m guessing updateStack doesnt cost a lot of cpu, but still this is worth mentioning <img src='http://asgamer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>adobe docs: &#8220;The Event.ADDED constant defines the value of the type property of an added event object.&#8221;</p>
<p>Maybe Event.ADDED_TO_STAGE is possible to use? I havent looked into that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arcanor</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-4611</link>
		<dc:creator>Arcanor</dc:creator>
		<pubDate>Mon, 07 Dec 2009 14:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-4611</guid>
		<description>Thanks for this great tutorial.  I've adapted it for my own use (I'm using PushButtonEngine) and added a couple of small features for usability.  Here's a link to my forum post about it, which includes my final code:  http://pushbuttonengine.com/forum/viewtopic.php?f=5&#38;t=377&#38;start=0</description>
		<content:encoded><![CDATA[<p>Thanks for this great tutorial.  I&#8217;ve adapted it for my own use (I&#8217;m using PushButtonEngine) and added a couple of small features for usability.  Here&#8217;s a link to my forum post about it, which includes my final code:  <a href="http://pushbuttonengine.com/forum/viewtopic.php?f=5&amp;t=377&amp;start=0" rel="nofollow">http://pushbuttonengine.com/forum/viewtopic.php?f=5&amp;t=377&amp;start=0</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-4599</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Thu, 26 Nov 2009 23:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-4599</guid>
		<description>thx for the tutorial this site is really good ^^</description>
		<content:encoded><![CDATA[<p>thx for the tutorial this site is really good ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Par</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-3827</link>
		<dc:creator>Par</dc:creator>
		<pubDate>Mon, 06 Jul 2009 15:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-3827</guid>
		<description>Thanks for pointing that out :D</description>
		<content:encoded><![CDATA[<p>Thanks for pointing that out <img src='http://asgamer.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adampasz</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-3651</link>
		<dc:creator>adampasz</dc:creator>
		<pubDate>Thu, 02 Jul 2009 15:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-3651</guid>
		<description>Nice demo.  One correction, in the final code sample, in the mouseReturnHandler function:

removeEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler);

should be

stageRef.removeEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler);</description>
		<content:encoded><![CDATA[<p>Nice demo.  One correction, in the final code sample, in the mouseReturnHandler function:</p>
<p>removeEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler);</p>
<p>should be</p>
<p>stageRef.removeEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guc</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-3005</link>
		<dc:creator>guc</dc:creator>
		<pubDate>Mon, 15 Jun 2009 08:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-3005</guid>
		<description>Thanks for the great tutorial helped me alot. I've been wondering also about what Samuel mentioned. Do I need to create another MC w/new graphic for the MOUSE_DOWN/MOUSE_UP and call to them, or is there a way I can put it in the same MC as the basic cursor?</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorial helped me alot. I&#8217;ve been wondering also about what Samuel mentioned. Do I need to create another MC w/new graphic for the MOUSE_DOWN/MOUSE_UP and call to them, or is there a way I can put it in the same MC as the basic cursor?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Par</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-1367</link>
		<dc:creator>Par</dc:creator>
		<pubDate>Thu, 30 Apr 2009 12:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-1367</guid>
		<description>It can be done... you'll have to setup listeners based on MouseEvent.MOUSE_DOWN and MouseEvent.MOUSE_UP.

Or if you have a quick flicker and literally mean click then you can do it on MouseEvent.MOUSE_CLICK.</description>
		<content:encoded><![CDATA[<p>It can be done&#8230; you&#8217;ll have to setup listeners based on MouseEvent.MOUSE_DOWN and MouseEvent.MOUSE_UP.</p>
<p>Or if you have a quick flicker and literally mean click then you can do it on MouseEvent.MOUSE_CLICK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-1349</link>
		<dc:creator>Samuel</dc:creator>
		<pubDate>Wed, 29 Apr 2009 22:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-1349</guid>
		<description>Great! but I was wondering, how can I make that the cursor changes when I press the left click button? Is it possible? I have been looking for a tutorial that can help me with that but it is nowhere to be found; Can I make this using AS3?</description>
		<content:encoded><![CDATA[<p>Great! but I was wondering, how can I make that the cursor changes when I press the left click button? Is it possible? I have been looking for a tutorial that can help me with that but it is nowhere to be found; Can I make this using AS3?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Par</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-1335</link>
		<dc:creator>Par</dc:creator>
		<pubDate>Wed, 29 Apr 2009 12:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-1335</guid>
		<description>Thanks Troy :D Much more detailed explanation.</description>
		<content:encoded><![CDATA[<p>Thanks Troy <img src='http://asgamer.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> Much more detailed explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy Gilbert</title>
		<link>http://asgamer.com/2009/an-even-better-as3-oop-flash-custom-cursor/comment-page-1#comment-1315</link>
		<dc:creator>Troy Gilbert</dc:creator>
		<pubDate>Wed, 29 Apr 2009 04:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=362#comment-1315</guid>
		<description>@Fei: DisplayObjects can only have one parent. If you add a DO to another DO it is first removed from it's current parent. If you add a DO to its parent it short-circuits the remove/re-add and just updates it's position in the display list (which would be to the top in the case of addChild, or wherever you specify in the case of addChildAt).

Thus, no REMOVED nor ADDED events are dispatched.

In your code, when you called removeChild() first you split the atomic operation of a single addChild() call to the non-atomic removeChild()/addChild(). Since those events are dispatched immediately when the display list is modified it resulted in the ADDED event getting triggered again, and so forth...</description>
		<content:encoded><![CDATA[<p>@Fei: DisplayObjects can only have one parent. If you add a DO to another DO it is first removed from it&#8217;s current parent. If you add a DO to its parent it short-circuits the remove/re-add and just updates it&#8217;s position in the display list (which would be to the top in the case of addChild, or wherever you specify in the case of addChildAt).</p>
<p>Thus, no REMOVED nor ADDED events are dispatched.</p>
<p>In your code, when you called removeChild() first you split the atomic operation of a single addChild() call to the non-atomic removeChild()/addChild(). Since those events are dispatched immediately when the display list is modified it resulted in the ADDED event getting triggered again, and so forth&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
