<?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; interpolationMethod</title>
	<atom:link href="http://blog.flexexamples.com/tag/interpolationmethod/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>Setting the interpolation method for a linear gradient in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2008/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2008/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 16:41:18 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FXG]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[interpolationMethod]]></category>
		<category><![CDATA[lineargradient]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set the interpolation method on a Flex Gumbo Ellipse object&#8217;s LinearGradient fill by setting the interpolationMethod property to one of the constants in the flash.display.InterpolationMethod class.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/LinearGradient_interpolationMethod_test/bin/srcview/source/main_4235.mxml.html">View MXML</a></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/ --&#62; &#60;Application name=&#34;LinearGradient_interpolationMethod_test&#34; xmlns=&#34;http://ns.adobe.com/mxml/2009&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the interpolation method on a Flex Gumbo Ellipse object&#8217;s LinearGradient fill by setting the <code>interpolationMethod</code> property to one of the constants in the flash.display.InterpolationMethod class.</p>
<p>Full code after the jump.</p>
<p><span id="more-884"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/LinearGradient_interpolationMethod_test/bin/srcview/source/main_4235.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/ --&gt;
&lt;Application name=&quot;LinearGradient_interpolationMethod_test&quot;
        xmlns=&quot;http://ns.adobe.com/mxml/2009&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;Form styleName=&quot;plain&quot;&gt;
            &lt;FormItem label=&quot;interpolationMethod:&quot;&gt;
                &lt;ComboBox id=&quot;comboBox&quot; selectedIndex=&quot;1&quot;&gt;
                    &lt;dataProvider&gt;
                        &lt;String&gt;{InterpolationMethod.LINEAR_RGB}&lt;/String&gt;
                        &lt;String&gt;{InterpolationMethod.RGB}&lt;/String&gt;
                    &lt;/dataProvider&gt;
                &lt;/ComboBox&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;Graphic&gt;
        &lt;Ellipse id=&quot;ellipse&quot; width=&quot;300&quot; height=&quot;200&quot;&gt;
            &lt;fill&gt;
                &lt;LinearGradient id=&quot;linearGrad&quot;
                        interpolationMethod=&quot;{comboBox.selectedItem}&quot;&gt;
                    &lt;GradientEntry color=&quot;haloOrange&quot; /&gt;
                    &lt;GradientEntry color=&quot;haloBlue&quot; /&gt;
                &lt;/LinearGradient&gt;
            &lt;/fill&gt;
        &lt;/Ellipse&gt;
    &lt;/Graphic&gt;

&lt;/Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/LinearGradient_interpolationMethod_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/LinearGradient_interpolationMethod_test/bin/main_4235.html" width="100%" height="320"></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 the interpolation method for a linear gradient in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/',contentID: 'post-884',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,interpolationMethod,lineargradient',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/12/01/setting-the-interpolation-method-for-a-linear-gradient-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

