<?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: Tutorial &#8211; ActionScript 3.0 Masks</title>
	<atom:link href="http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/</link>
	<description>Flash and ActionScript Tutorials</description>
	<lastBuildDate>Wed, 07 Apr 2010 18:49:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-70</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Sun, 14 Mar 2010 08:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-70</guid>
		<description>You have saved me. I have been looking for this informaton all night. It works now. Thank you.</description>
		<content:encoded><![CDATA[<p>You have saved me. I have been looking for this informaton all night. It works now. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MGM</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-69</link>
		<dc:creator>MGM</dc:creator>
		<pubDate>Fri, 14 Aug 2009 17:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-69</guid>
		<description>Who ripped who off? Check the dates, V, this was first.</description>
		<content:encoded><![CDATA[<p>Who ripped who off? Check the dates, V, this was first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-68</link>
		<dc:creator>V</dc:creator>
		<pubDate>Tue, 28 Apr 2009 11:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-68</guid>
		<description>total rip-off i found:
http://www.pqdvd.com/blog/air/?p=82</description>
		<content:encoded><![CDATA[<p>total rip-off i found:<br />
<a href="http://www.pqdvd.com/blog/air/?p=82" rel="nofollow">http://www.pqdvd.com/blog/air/?p=82</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: larry</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-67</link>
		<dc:creator>larry</dc:creator>
		<pubDate>Thu, 19 Feb 2009 02:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-67</guid>
		<description>Thank you, Craig... best explanation i found... helps a lot!</description>
		<content:encoded><![CDATA[<p>Thank you, Craig&#8230; best explanation i found&#8230; helps a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djerry</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-66</link>
		<dc:creator>djerry</dc:creator>
		<pubDate>Mon, 19 Jan 2009 21:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-66</guid>
		<description>this is very handy
working on a project at college, thanks for this post, lifesaver ^^</description>
		<content:encoded><![CDATA[<p>this is very handy<br />
working on a project at college, thanks for this post, lifesaver ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lunatik</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-65</link>
		<dc:creator>lunatik</dc:creator>
		<pubDate>Thu, 08 Jan 2009 17:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-65</guid>
		<description>Thanks god!!!
This cacheAsBitmap property is real crap!
I&#039;ve been stuck for hours .
Thank you very much</description>
		<content:encoded><![CDATA[<p>Thanks god!!!<br />
This cacheAsBitmap property is real crap!<br />
I&#8217;ve been stuck for hours .<br />
Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Belinda</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-64</link>
		<dc:creator>Belinda</dc:creator>
		<pubDate>Wed, 03 Sep 2008 19:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-64</guid>
		<description>Hi!  I&#039;m just learning flash, so I&#039;m a bit of a newbie.  How did you cause the screen to be black instead of white?  The best I&#039;ve got so far is to set my picture_mc as having opaque background black.  I&#039;d rather set the stage like this, and when I do this (I&#039;m not sure why) my circle isn&#039;t nice and transparent at the edges anymore :(  Any thoughts?
My code is below:

mask_mc.addEventListener(Event.ENTER_FRAME, movemask)
dress_mc.mask = mask_mc
dress_mc.opaqueBackground = 0x000000
dress_mc.cacheAsBitmap = true
mask_mc.cacheAsBitmap = true

function movemask(e:Event):void
{
	mask_mc.x = mouseX
	mask_mc.y = mouseY
}</description>
		<content:encoded><![CDATA[<p>Hi!  I&#8217;m just learning flash, so I&#8217;m a bit of a newbie.  How did you cause the screen to be black instead of white?  The best I&#8217;ve got so far is to set my picture_mc as having opaque background black.  I&#8217;d rather set the stage like this, and when I do this (I&#8217;m not sure why) my circle isn&#8217;t nice and transparent at the edges anymore <img src='http://www.schoolofflash.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   Any thoughts?<br />
My code is below:</p>
<p>mask_mc.addEventListener(Event.ENTER_FRAME, movemask)<br />
dress_mc.mask = mask_mc<br />
dress_mc.opaqueBackground = 0&#215;000000<br />
dress_mc.cacheAsBitmap = true<br />
mask_mc.cacheAsBitmap = true</p>
<p>function movemask(e:Event):void<br />
{<br />
	mask_mc.x = mouseX<br />
	mask_mc.y = mouseY<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-63</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 25 Jul 2008 19:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-63</guid>
		<description>Thanks! This was just was I was looking for. I appreciate how you explained the AS3 way of doing this along with what has changed since AS2 and why.</description>
		<content:encoded><![CDATA[<p>Thanks! This was just was I was looking for. I appreciate how you explained the AS3 way of doing this along with what has changed since AS2 and why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajitpal Singh</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-62</link>
		<dc:creator>ajitpal Singh</dc:creator>
		<pubDate>Wed, 04 Jun 2008 05:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-62</guid>
		<description>hello sir, that is really a nice example... i have one question.... is there is any way in AS3 that we can know, which layer is mask or not.... suppose user give us a swf we loaded it in another swf. so from there can we find which layer is mask or not????? bit difficult.. hope u solve it soon. TC</description>
		<content:encoded><![CDATA[<p>hello sir, that is really a nice example&#8230; i have one question&#8230;. is there is any way in AS3 that we can know, which layer is mask or not&#8230;. suppose user give us a swf we loaded it in another swf. so from there can we find which layer is mask or not????? bit difficult.. hope u solve it soon. TC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T.G.</title>
		<link>http://www.schoolofflash.com/blog/2008/03/tutorial-actionscript-30-masks/comment-page-1/#comment-61</link>
		<dc:creator>T.G.</dc:creator>
		<pubDate>Fri, 25 Apr 2008 08:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/03/19/tutorial-actionscript-30-masks/#comment-61</guid>
		<description>henri-

I don&#039;t know if you are still checking this post, but if I understand you correctly, I&#039;m trying to do a similar thing as you in a game of my own right now.  I have a movie clip which I want to appear black (or you could have it not appear at all) until it walks through a certain area where it will be seen until it passes out of that area.

If you don&#039;t want it to appear at all except within the mask shape, then in your actionscript just create the clip, and create the maks clip (i use a small rectangle), and assign the mask clip to the &quot;.mask&quot; property of your first clip, and add them both to the stage.  You should see everything else that has been added to the stage, but you&#039;ll only see the clip you&#039;re masking if it passes over the area of your mask clip.  My only problem is that you can&#039;t assign the same mask clip to multiple movie clips...</description>
		<content:encoded><![CDATA[<p>henri-</p>
<p>I don&#8217;t know if you are still checking this post, but if I understand you correctly, I&#8217;m trying to do a similar thing as you in a game of my own right now.  I have a movie clip which I want to appear black (or you could have it not appear at all) until it walks through a certain area where it will be seen until it passes out of that area.</p>
<p>If you don&#8217;t want it to appear at all except within the mask shape, then in your actionscript just create the clip, and create the maks clip (i use a small rectangle), and assign the mask clip to the &#8220;.mask&#8221; property of your first clip, and add them both to the stage.  You should see everything else that has been added to the stage, but you&#8217;ll only see the clip you&#8217;re masking if it passes over the area of your mask clip.  My only problem is that you can&#8217;t assign the same mask clip to multiple movie clips&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
