<?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: Preventing the right mouse cheat in your Flash games</title>
	<atom:link href="http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Thu, 11 Mar 2010 10:43:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CTC</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-487260</link>
		<dc:creator>CTC</dc:creator>
		<pubDate>Tue, 18 Aug 2009 23:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-487260</guid>
		<description>Josh is right, you shouldn&#039;t check the mouse position.
Instead update xpos/ypos variables from the mouse position on mouse movements and check against those.
Once you right click the variables don&#039;t get updated and you collide.</description>
		<content:encoded><![CDATA[<p>Josh is right, you shouldn&#8217;t check the mouse position.<br />
Instead update xpos/ypos variables from the mouse position on mouse movements and check against those.<br />
Once you right click the variables don&#8217;t get updated and you collide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-477363</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 26 Jul 2009 15:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-477363</guid>
		<description>I would check the location of the movieclip object instead of the mouse x/y position for collision. Then, the right-click cheat shown in that video would actually make you lose.</description>
		<content:encoded><![CDATA[<p>I would check the location of the movieclip object instead of the mouse x/y position for collision. Then, the right-click cheat shown in that video would actually make you lose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ Simon</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-439947</link>
		<dc:creator>AJ Simon</dc:creator>
		<pubDate>Sun, 26 Apr 2009 21:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-439947</guid>
		<description>the AS3 solution posted above does not work... i have a client the is going above and beyond requesting to have this for there game.  first we never promised it, because if people want to cheat at a game... well then what is the point.  people have cheated since the contra game and everyone i am sure remembers that cheat code to get 30 xtra men.

regardless, i would love to see an AS3 solution for this i have search high and low and found nothing that will meet the need.

-aj</description>
		<content:encoded><![CDATA[<p>the AS3 solution posted above does not work&#8230; i have a client the is going above and beyond requesting to have this for there game.  first we never promised it, because if people want to cheat at a game&#8230; well then what is the point.  people have cheated since the contra game and everyone i am sure remembers that cheat code to get 30 xtra men.</p>
<p>regardless, i would love to see an AS3 solution for this i have search high and low and found nothing that will meet the need.</p>
<p>-aj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ARK</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-413011</link>
		<dc:creator>ARK</dc:creator>
		<pubDate>Sun, 22 Mar 2009 22:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-413011</guid>
		<description>There is a way to do this using ActionScript 3.0:

stage.addEventListener(Event.MOUSE_LEAVE, func);
function func (event:Event):void
{
   //the code inside this function will be triggered when the mouse leaved the stage or when the contextual menu (right-click) is triggered
}</description>
		<content:encoded><![CDATA[<p>There is a way to do this using ActionScript 3.0:</p>
<p>stage.addEventListener(Event.MOUSE_LEAVE, func);<br />
function func (event:Event):void<br />
{<br />
   //the code inside this function will be triggered when the mouse leaved the stage or when the contextual menu (right-click) is triggered<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier LÃ¡zaro</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-318906</link>
		<dc:creator>Javier LÃ¡zaro</dc:creator>
		<pubDate>Thu, 30 Oct 2008 16:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-318906</guid>
		<description>Wonderful! 
Just needed this to fix a cheat on my latest game!</description>
		<content:encoded><![CDATA[<p>Wonderful!<br />
Just needed this to fix a cheat on my latest game!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-242383</link>
		<dc:creator>Graham</dc:creator>
		<pubDate>Wed, 30 Jul 2008 02:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-242383</guid>
		<description>Does anyone know how to do this in AS3?</description>
		<content:encoded><![CDATA[<p>Does anyone know how to do this in AS3?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-240304</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Sat, 26 Jul 2008 13:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-240304</guid>
		<description>Well, you could simply put in some code that will say &quot;You&#039;re cheating!&quot; and restart the game if you press the left mouse button. Simply, if you right-click you have to left click to switch off the menu and continue playing...</description>
		<content:encoded><![CDATA[<p>Well, you could simply put in some code that will say &#8220;You&#8217;re cheating!&#8221; and restart the game if you press the left mouse button. Simply, if you right-click you have to left click to switch off the menu and continue playing&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lewis</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-161345</link>
		<dc:creator>lewis</dc:creator>
		<pubDate>Mon, 12 May 2008 16:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-161345</guid>
		<description>you can change what the right click says and take the clicker toa certain slide.
Just put:

function go () {
gotoAndStop(19);
}

var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();

var cheat1:ContextMenuItem = new ContextMenuItem(&quot;Click here for money&quot;, go);
var cheat2:ContextMenuItem = new ContextMenuItem(&quot;Cheat at the lottery!&quot;, go);
var cheat3:ContextMenuItem = new ContextMenuItem(&quot;Free pie&quot;, go);
var cheat4:ContextMenuItem = new ContextMenuItem(&quot;Click here to cheat&quot;, go);
var cheat5:ContextMenuItem = new ContextMenuItem(&quot;Cheating is for NOOBS!&quot;, go);
var cheat6:ContextMenuItem = new ContextMenuItem(&quot;Cheating is for gays&quot;, go);
var cheat7:ContextMenuItem = new ContextMenuItem(&quot;Please don&#039;t cheat&quot;, go);
var cheat8:ContextMenuItem = new ContextMenuItem(&quot;CHEAT!!!&quot;, go);

myMenu.customItems.push(cheat1, cheat2, cheat3, cheat4, cheat5, cheat6, cheat7, cheat8);

_root.menu = myMenu;
you can change what it says by changing the bit where it says stuff like &quot;CHEAT!!!&quot;
it is very usefull.</description>
		<content:encoded><![CDATA[<p>you can change what the right click says and take the clicker toa certain slide.<br />
Just put:</p>
<p>function go () {<br />
gotoAndStop(19);<br />
}</p>
<p>var myMenu:ContextMenu = new ContextMenu();<br />
myMenu.hideBuiltInItems();</p>
<p>var cheat1:ContextMenuItem = new ContextMenuItem(&#8220;Click here for money&#8221;, go);<br />
var cheat2:ContextMenuItem = new ContextMenuItem(&#8220;Cheat at the lottery!&#8221;, go);<br />
var cheat3:ContextMenuItem = new ContextMenuItem(&#8220;Free pie&#8221;, go);<br />
var cheat4:ContextMenuItem = new ContextMenuItem(&#8220;Click here to cheat&#8221;, go);<br />
var cheat5:ContextMenuItem = new ContextMenuItem(&#8220;Cheating is for NOOBS!&#8221;, go);<br />
var cheat6:ContextMenuItem = new ContextMenuItem(&#8220;Cheating is for gays&#8221;, go);<br />
var cheat7:ContextMenuItem = new ContextMenuItem(&#8220;Please don&#8217;t cheat&#8221;, go);<br />
var cheat8:ContextMenuItem = new ContextMenuItem(&#8220;CHEAT!!!&#8221;, go);</p>
<p>myMenu.customItems.push(cheat1, cheat2, cheat3, cheat4, cheat5, cheat6, cheat7, cheat8);</p>
<p>_root.menu = myMenu;<br />
you can change what it says by changing the bit where it says stuff like &#8220;CHEAT!!!&#8221;<br />
it is very usefull.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-161299</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 12 May 2008 14:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-161299</guid>
		<description>Solution: Don&#039;t do mouse avoider games. They suck.</description>
		<content:encoded><![CDATA[<p>Solution: Don&#8217;t do mouse avoider games. They suck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kesh</title>
		<link>http://www.emanueleferonato.com/2008/05/10/preventing-the-right-mouse-cheat-in-your-flash-games/comment-page-1/#comment-161158</link>
		<dc:creator>Kesh</dc:creator>
		<pubDate>Mon, 12 May 2008 05:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=271#comment-161158</guid>
		<description>well, the key(2) is less effective because that only detects if the right click button was pressed. What if someone had a tablet pc and there are no right click buttons? All they have to do is hold down the stylus until it right clicks... how can u detect that with key(2)? I havent tested it, but still Emanuele&#039;s way is much more effective.</description>
		<content:encoded><![CDATA[<p>well, the key(2) is less effective because that only detects if the right click button was pressed. What if someone had a tablet pc and there are no right click buttons? All they have to do is hold down the stylus until it right clicks&#8230; how can u detect that with key(2)? I havent tested it, but still Emanuele&#8217;s way is much more effective.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
