<?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/"
	>

<channel>
	<title>Flex Examples &#187; maskType</title>
	<atom:link href="http://blog.flexexamples.com/tag/masktype/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Masking a Rect object with a TextGraphic in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/01/14/masking-a-rect-object-with-a-textgraphic-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/01/14/masking-a-rect-object-with-a-textgraphic-in-flex-gumbo/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 07:59:00 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FXG]]></category>
		<category><![CDATA[Rect]]></category>
		<category><![CDATA[TextGraphic]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[lineargradient]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[maskType]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/01/14/masking-a-rect-object-with-a-textgraphic-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can use a TextGraphic object as a mask on a Rect object in Flex Gumbo by setting the maskType property to &#8220;alpha&#8221;.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use a TextGraphic object as a mask on a Rect object in Flex Gumbo by setting the <code>maskType</code> property to &#8220;alpha&#8221;.</p>
<p>Full code after the jump.</p>
<p><span id="more-930"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/01/14/masking-a-rect-object-with-a-textgraphic-in-flex-gumbo/ --&gt;
&lt;Application name="Rect_mask_TextGraphic_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            private function init():void {
                rect.width = textGr.width;
                rect.height = textGr.height;
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;Graphic maskType="alpha"&gt;
        &lt;Rect id="rect"&gt;
            &lt;fill&gt;
                &lt;LinearGradient&gt;
                    &lt;entries&gt;
                        &lt;GradientEntry color="red" /&gt;
                        &lt;GradientEntry color="blue" /&gt;
                    &lt;/entries&gt;
                &lt;/LinearGradient&gt;
            &lt;/fill&gt;
        &lt;/Rect&gt;
        &lt;mask&gt;
            &lt;Group updateComplete="init();"&gt;
                &lt;TextGraphic id="textGr"
                        text="The quick brown fox jumps over the lazy dog."
                        fontSize="32"
                        width="300" /&gt;
            &lt;/Group&gt;
        &lt;/mask&gt;
    &lt;/Graphic&gt;

&lt;/Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Masking a Rect object with a TextGraphic in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/01/14/masking-a-rect-object-with-a-textgraphic-in-flex-gumbo/',contentID: 'post-930',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,lineargradient,mask,maskType',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/01/14/masking-a-rect-object-with-a-textgraphic-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting a mask type on an Ellipse in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2008/11/11/setting-a-mask-type-on-an-ellipse-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2008/11/11/setting-a-mask-type-on-an-ellipse-in-flex-gumbo/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 03:51:19 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[Ellipse]]></category>
		<category><![CDATA[FXG]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[maskType]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/11/setting-a-mask-type-on-an-ellipse-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set an Ellipse object&#8217;s mask type as a clip mask or alpha mask by setting the maskType property.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set an Ellipse object&#8217;s mask type as a clip mask or alpha mask by setting the <code>maskType</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-859"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Ellipse_maskType_test/bin/srcview/source/main_4423.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/11/11/setting-a-mask-type-on-an-ellipse-in-flex-gumbo/ --&gt;
&lt;FxApplication xmlns="http://ns.adobe.com/mxml/2009"&gt;
    &lt;layout&gt;
        &lt;BasicLayout /&gt;
    &lt;/layout&gt;

    &lt;Form&gt;
        &lt;FormItem label="maskType:"&gt;
            &lt;ComboBox id="comboBox"
                    dataProvider="[clip,alpha]" /&gt;
        &lt;/FormItem&gt;
        &lt;FormItem label="mask alpha:"
                direction="horizontal"&gt;
            &lt;HSlider id="slider"
                    minimum="0.0"
                    maximum="1.0"
                    value="1.0"
                    liveDragging="true" /&gt;
            &lt;Label text="{slider.value.toFixed(1)}" /&gt;
        &lt;/FormItem&gt;
    &lt;/Form&gt;

    &lt;VGroup horizontalCenter="0" bottom="10"&gt;
        &lt;Ellipse id="ellipse"
                maskType="{comboBox.selectedItem}"
                width="400"
                height="200"&gt;
            &lt;mask&gt;
                &lt;Group&gt;
                    &lt;Rect width="100" height="100"&gt;
                        &lt;fill&gt;
                            &lt;SolidColor alpha="{slider.value}" /&gt;
                        &lt;/fill&gt;
                    &lt;/Rect&gt;
                &lt;/Group&gt;
            &lt;/mask&gt;
            &lt;fill&gt;
                &lt;SolidColor color="#FF00FF" /&gt;
            &lt;/fill&gt;
        &lt;/Ellipse&gt;
    &lt;/VGroup&gt;

&lt;/FxApplication&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Ellipse_maskType_test/bin/srcview/">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Ellipse_maskType_test/bin/main_4423.html" width="100%" height="400"></iframe></p>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting a mask type on an Ellipse in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/11/11/setting-a-mask-type-on-an-ellipse-in-flex-gumbo/',contentID: 'post-859',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,mask,maskType',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/11/11/setting-a-mask-type-on-an-ellipse-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

