<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Web Design Tutorials &#187; Creating Mask in Flash CS4</title>
	<atom:link href="http://bestwebdesignz.com/tips/tag/creating-mask-in-flash-cs4/feed/" rel="self" type="application/rss+xml" />
	<link>http://bestwebdesignz.com/tips</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 10:24:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Creating Mask in Flash CS4</title>
		<link>http://bestwebdesignz.com/tips/flash-cs4-tutorial/creating-mask-in-flash-cs4/</link>
		<comments>http://bestwebdesignz.com/tips/flash-cs4-tutorial/creating-mask-in-flash-cs4/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 13:09:04 +0000</pubDate>
		<dc:creator>clement</dc:creator>
				<category><![CDATA[Flash CS4 Tutorial]]></category>
		<category><![CDATA[Creating Mask in Flash CS4]]></category>

		<guid isPermaLink="false">http://bestwebdesignz.com/tips/?p=645</guid>
		<description><![CDATA[A mask is simply to hide or reveal certain parts of a layer, for lets say we import an image on stage, so go to File -&#62; Import -&#62; Import to stage like the one here You have imported an image from your image file to stage, lets say you want to reveal a small [...]]]></description>
			<content:encoded><![CDATA[<p>A mask is simply to hide or reveal certain parts of a layer, for lets say we import an image on stage, so go to File -&gt; Import -&gt; Import to stage like the one here<br />
<img class="alignnone size-full wp-image-646" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image154.jpg" alt="Creating Mask in Flash CS4 " width="360" height="254" /><br />
You have imported an image from your image file to stage, lets say you want to reveal a small portion of this image, you want to hide most of the picture, we need to create a mask to do that in Flash CS4, the way we need to do that is by creating another layer above the picture layer, lets first lock the picture layer and rename layer1 to picture and create another layer and name it mask, Now lets draw a mask, select the mask layer and draw a circle on stage by selecting a bright green color, it doesn’t matter what color you select, so draw the circle on stage for the picture you actually want to see, the mask is going to act as a flash light so whatever it touches is what we are going to see, having drawn a circle for the picture you want to see, you will see something like this<br />
<img class="alignnone size-full wp-image-647" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image155.png" alt="Creating Mask in Flash CS4 " width="513" height="326" /><br />
By doing this we actually don’t see the picture what we really wanted to see, the mask is not done yet, now click on the mask layer and right click on your mouse and select mask,<br />
As soon as you do that you can see what we wanted to see like the picture below.<br />
<img class="alignnone size-full wp-image-648" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image157.png" alt="Creating Mask in Flash CS4 " width="294" height="240" /><br />
To do more practical illustration, lets draw a planet with a ring around it, so first draw a red circle, select the oval tool and select the color red and draw a circle on stage  and call it planet in layer1, lock layer planet and insert a layer just above layer planet and call it rings, so by choosing a oval tool, we don’t need a fill color but we need a stroke color to this ring, make the thickness of the ring to 30 and draw a ring on stage, by selecting the oval shape and pressing alt and dragging it around the red circle you will get something like this below,<br />
<img class="alignnone size-full wp-image-649" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image159.jpg" alt="Creating Mask in Flash CS4 " width="276" height="161" /><br />
now make the ring to a fill instead of a stroke, we can do so by first select the black ring in the rings layer and by going to the main menu-&gt; Modify-&gt;Shape-&gt; convert Lines to fills.<br />
<img class="alignnone size-full wp-image-650" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image160.jpg" alt="Creating Mask in Flash CS4 " width="384" height="245" /><br />
We need to create a mask and hike this section like this one here<br />
<img class="alignnone size-full wp-image-651" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image161.jpg" alt="Creating Mask in Flash CS4 " width="360" height="60" /><br />
Remember that while creating a mask you need to create a mask that you want to reveal and not the parts you want to hide, so we don’t want the mask to touch the picture above but everything else other that that,  so lets create a new layer and call it mask right above the rings layer,  now copy the rings layer and paste it in the mask layer by going to the rings layer, select the ring, press ctrl+c to copy it, lock the rings layer, go to the mask layer and paste it exactly the same place as it was in the rings layer by pressing Ctrl+Shift+V, it will paste the rings in exactly the same position as it was in the rings layer, now be very careful and follow the step very carefully, lets lock the mask layer for a second, unlock the planet layer and using the lasso tool just copy the top part of the planet that is touching the ring, we are actually trying to cut out the ring that is supposed to go behind the planet,<br />
<img class="alignnone size-full wp-image-652" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image162.jpg" alt="Creating Mask in Flash CS4 " width="264" height="138" /><br />
We have made that selection now copy it from the planet layer by pressing Ctrl+c then lock the planet layer, go to the mask layer and unlock it and then paste it in the mask layer by pressing Shift+Ctrl+V, lets make the planet layer and the rings layer invisible by clicking on the eye icon on each layer to see what we have done in the mask layer.<br />
<img class="alignnone size-full wp-image-653" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image163.jpg" alt="Creating Mask in Flash CS4 " width="288" height="120" /><br />
Now that you have pasted the red cap which is interfering with the black ring you can select the red cap and delete it by pressing delete button, then your mask layer will look some thing like this below.<br />
<img class="alignnone size-full wp-image-654" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image164.jpg" alt="Creating Mask in Flash CS4 " width="324" height="80" /><br />
Now there we go, we see only the portion of the ring we need to see, now we can make all the layers namely, planet, rings and mask layer visible, but still you will see picture<br />
<img class="alignnone size-full wp-image-655" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image1591.jpg" alt="Creating Mask in Flash CS4 " width="276" height="161" /><br />
That’s because we have not applied mask to the mask layer, now click on the mask layer, right click the mouse and select mask, that it you image will look something like this.<br />
<img class="alignnone size-full wp-image-656" title="Creating Mask in Flash CS4 " src="http://bestwebdesignz.com/tips/wp-content/uploads/2009/04/image165.jpg" alt="Creating Mask in Flash CS4 " width="168" height="88" /></p>
<script type="text/javascript"><!--
                    google_ad_client = "pub-7099335855422733";
                    google_ad_slot = "4729128935";
                    google_ad_width = 336;
                    google_ad_height = 280;
                    //-->
                    </script>
                    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
                    ]]></content:encoded>
			<wfw:commentRss>http://bestwebdesignz.com/tips/flash-cs4-tutorial/creating-mask-in-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Flash CS4 Tutorials]]></series:name>
	</item>
	</channel>
</rss>
