<?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: How to easily make a draggable mask with ActionScript</title>
	<atom:link href="http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/</link>
	<description>Learn Flash easily.</description>
	<lastBuildDate>Fri, 12 Mar 2010 12:24:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adam</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-1944</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 21 Jan 2010 17:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-1944</guid>
		<description>how do you limit the mask movement to just the X axis? Is it possible to put a line or handle on the mask like in this example:

http://www.nytimes.com/2008/12/28/nyregion/18thennow.html?_r=1</description>
		<content:encoded><![CDATA[<p>how do you limit the mask movement to just the X axis? Is it possible to put a line or handle on the mask like in this example:</p>
<p><a href="http://www.nytimes.com/2008/12/28/nyregion/18thennow.html?_r=1" rel="nofollow">http://www.nytimes.com/2008/12/28/nyregion/18thennow.html?_r=1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davidt</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-1812</link>
		<dc:creator>davidt</dc:creator>
		<pubDate>Wed, 02 Dec 2009 14:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-1812</guid>
		<description>This is the correct AS3 code

myImage.mask = myMask;
stage.addEventListener(MouseEvent.MOUSE_DOWN, fMouseDown);
stage.addEventListener(MouseEvent.CLICK, fMouseUp);
function fMouseDown(e:MouseEvent):void {
myMask.startDrag();
}
function fMouseUp(e:MouseEvent):void {
myMask.stopDrag();
}</description>
		<content:encoded><![CDATA[<p>This is the correct AS3 code</p>
<p>myImage.mask = myMask;<br />
stage.addEventListener(MouseEvent.MOUSE_DOWN, fMouseDown);<br />
stage.addEventListener(MouseEvent.CLICK, fMouseUp);<br />
function fMouseDown(e:MouseEvent):void {<br />
myMask.startDrag();<br />
}<br />
function fMouseUp(e:MouseEvent):void {<br />
myMask.stopDrag();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poozzle</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-1750</link>
		<dc:creator>Poozzle</dc:creator>
		<pubDate>Sat, 07 Nov 2009 01:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-1750</guid>
		<description>A fair bit has changed in AS3 so just wanted to leave an update to this that works in AS3. Hope it helps somone out!

Cheers
Nick
Poozzle.com
-----------------

myImage.mask = myMask;
stage.addEventListener(&#039;mouseDown&#039;, fMouseDown);
stage.addEventListener(&#039;click&#039;, fMouseUp);

function fMouseDown(e:MouseEvent):void {
	myMask.startDrag();
	
}
function fMouseUp(e:MouseEvent):void {
	myMask.stopDrag();
}</description>
		<content:encoded><![CDATA[<p>A fair bit has changed in AS3 so just wanted to leave an update to this that works in AS3. Hope it helps somone out!</p>
<p>Cheers<br />
Nick<br />
Poozzle.com<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>myImage.mask = myMask;<br />
stage.addEventListener(&#8216;mouseDown&#8217;, fMouseDown);<br />
stage.addEventListener(&#8216;click&#8217;, fMouseUp);</p>
<p>function fMouseDown(e:MouseEvent):void {<br />
	myMask.startDrag();</p>
<p>}<br />
function fMouseUp(e:MouseEvent):void {<br />
	myMask.stopDrag();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rose</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-1558</link>
		<dc:creator>rose</dc:creator>
		<pubDate>Sun, 16 Aug 2009 09:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-1558</guid>
		<description>how to make the mask moving by itself?</description>
		<content:encoded><![CDATA[<p>how to make the mask moving by itself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jannina</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-1276</link>
		<dc:creator>Jannina</dc:creator>
		<pubDate>Wed, 15 Apr 2009 17:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-1276</guid>
		<description>Nice tutorial!! Very good explained!!</description>
		<content:encoded><![CDATA[<p>Nice tutorial!! Very good explained!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luka</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-412</link>
		<dc:creator>Luka</dc:creator>
		<pubDate>Sun, 09 Nov 2008 10:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-412</guid>
		<description>&lt;b&gt;Alex&lt;/b&gt;: Wow! Post a link!</description>
		<content:encoded><![CDATA[<p><b>Alex</b>: Wow! Post a link!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-396</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 07 Nov 2008 21:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-396</guid>
		<description>Ah yes it could, thanks for this, i sort merged this into a sniper game like tatical assassin with your help! Thanks!!</description>
		<content:encoded><![CDATA[<p>Ah yes it could, thanks for this, i sort merged this into a sniper game like tatical assassin with your help! Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://flashexplained.com/actionscript/how-to-easily-make-a-draggable-mask-with-actionscript/comment-page-1/#comment-393</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 07 Nov 2008 20:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://flashexplained.com/?p=466#comment-393</guid>
		<description>Could this be done with a picture drawn on a locked layer in flash?</description>
		<content:encoded><![CDATA[<p>Could this be done with a picture drawn on a locked layer in flash?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
