<?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; Fade</title>
	<atom:link href="http://blog.flexexamples.com/category/fade/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 a fade transition on a Spark DropDownList component in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 06:59:25 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta1]]></category>
		<category><![CDATA[DropDownList]]></category>
		<category><![CDATA[DropDownList (Spark)]]></category>
		<category><![CDATA[Fade]]></category>
		<category><![CDATA[Transition]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[transitions]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can fade in a Spark DropDownList pop up menu in Flex Gumbo by creating a custom DropDownList skin and setting the transitions property to a transition Fade effect.</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 [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can fade in a Spark DropDownList pop up menu in Flex Gumbo by creating a custom DropDownList skin and setting the <code>transitions</code> property to a transition Fade effect.</p>
<p>Full code after the jump.</p>
<p><span id="more-1062"></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/spark/Spark_DropDownList_transitions_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/ --&gt;
&lt;s:Application name="Spark_DropDownList_transitions_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"&gt;

    &lt;fx:Declarations&gt;
        &lt;s:ArrayList id="arrList"
                source="[Red,Orange,Yellow,Green,Blue]" /&gt;
    &lt;/fx:Declarations&gt;

    &lt;s:DropDownList id="dropDownList"
            dataProvider="{arrList}"
            requiresSelection="true"
            skinClass="skins.CustomDropDownListSkin"
            horizontalCenter="0"
            top="20" /&gt;

&lt;/s:Application&gt;
</pre>
<p>The custom Spark DropDownList skin, CustomDropDownListSkin.mxml, is as follows:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_DropDownList_transitions_test/bin/srcview/source/skins/CustomDropDownListSkin.mxml.html">View skins/CustomDropDownListSkin.mxml</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2009/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/ --&gt;
&lt;s:SparkSkin name=&quot;CustomDropDownListSkin&quot;
        xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        alpha.disabled=&quot;0.5&quot;&gt;
    &lt;s:states&gt;
        &lt;s:State name=&quot;normal&quot; /&gt;
        &lt;s:State name=&quot;open&quot; /&gt;
        &lt;s:State name=&quot;disabled&quot; /&gt;
    &lt;/s:states&gt;
    <strong style="color:red;">&lt;s:transitions&gt;
        &lt;s:Transition fromState=&quot;normal&quot; toState=&quot;open&quot;&gt;
            &lt;s:Fade target=&quot;{popup}&quot; duration=&quot;3000&quot; /&gt;
        &lt;/s:Transition&gt;
    &lt;/s:transitions&gt;</strong>

    &lt;!-- host component --&gt;
    &lt;fx:Metadata&gt;
        &lt;![CDATA[
            [HostComponent(&quot;spark.components.DropDownList&quot;)]
        ]]&gt;
    &lt;/fx:Metadata&gt;

    &lt;!--- Defines the appearance of the DropDownList component's drop down area. --&gt;
    &lt;s:PopUp id=&quot;popup&quot;
            open.normal=&quot;false&quot; open.open=&quot;true&quot;
            includeIn=&quot;open&quot;
            left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;
            visible.open=&quot;true&quot; visible.normal=&quot;false&quot;
            placement=&quot;below&quot;&gt;
        &lt;s:Group id=&quot;dropDown&quot;
                maxHeight=&quot;134&quot; minHeight=&quot;22&quot;
                visible.open=&quot;true&quot; visible.normal=&quot;false&quot;&gt;
            &lt;!-- border --&gt;
            &lt;s:Rect left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
                &lt;s:stroke&gt;
                    &lt;s:SolidColorStroke color=&quot;0x686868&quot; weight=&quot;1&quot;/&gt;
                &lt;/s:stroke&gt;
            &lt;/s:Rect&gt;

            &lt;!--- fill ---&gt;
            &lt;s:Rect id=&quot;background&quot; left=&quot;1&quot; right=&quot;1&quot; top=&quot;1&quot; bottom=&quot;1&quot; &gt;
                &lt;s:fill&gt;
                    &lt;s:SolidColor id=&quot;bgFill&quot; color=&quot;0xFFFFFF&quot; /&gt;
                &lt;/s:fill&gt;
            &lt;/s:Rect&gt;

            &lt;s:Scroller left=&quot;1&quot; top=&quot;1&quot; right=&quot;1&quot; bottom=&quot;1&quot; &gt;
                &lt;s:DataGroup id=&quot;dataGroup&quot; itemRenderer=&quot;spark.skins.default.DefaultItemRenderer&quot;&gt;
                    &lt;s:layout&gt;
                        &lt;s:VerticalLayout gap=&quot;0&quot; horizontalAlign=&quot;contentJustify&quot;/&gt;
                    &lt;/s:layout&gt;
                &lt;/s:DataGroup&gt;
            &lt;/s:Scroller&gt;

            &lt;s:filters&gt;
                &lt;s:DropShadowFilter blurX=&quot;20&quot; blurY=&quot;20&quot; distance=&quot;5&quot; angle=&quot;90&quot; alpha=&quot;0.6&quot; /&gt;
            &lt;/s:filters&gt;
        &lt;/s:Group&gt;
    &lt;/s:PopUp&gt;

    &lt;s:Button id=&quot;button&quot; left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; focusEnabled=&quot;false&quot;
        skinClass=&quot;spark.skins.default.DropDownListButtonSkin&quot; /&gt;
    &lt;s:SimpleText id=&quot;labelElement&quot; verticalAlign=&quot;middle&quot;
        left=&quot;7&quot; right=&quot;30&quot; top=&quot;2&quot; bottom=&quot;2&quot; verticalCenter=&quot;1&quot; /&gt;

&lt;/s:SparkSkin&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_DropDownList_transitions_test/bin/srcview/">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_DropDownList_transitions_test/bin/main.html" width="100%" height="200"></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 fade transition on a Spark DropDownList component in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/',contentID: 'post-1062',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,transitions',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/04/28/setting-a-fade-transition-on-a-spark-dropdownlist-component-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Creating a custom creation complete effect on a Flex Alert control (redux)</title>
		<link>http://blog.flexexamples.com/2008/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/</link>
		<comments>http://blog.flexexamples.com/2008/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 04:12:18 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Alert]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Fade]]></category>
		<category><![CDATA[Move]]></category>
		<category><![CDATA[Parallel]]></category>
		<category><![CDATA[creationCompleteEffect]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/</guid>
		<description><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/">&#8220;Creating a custom creation complete effect on a Flex Alert control&#8221;</a>, we saw how you could specify an effect which gets played when an Alert control is displayed by setting the Alert control&#8217;s creationCompleteEffect style.</p> <p>The following example shows how you can apply a parallel Fade/Move effect when the Alert [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/">&#8220;Creating a custom creation complete effect on a Flex Alert control&#8221;</a>, we saw how you could specify an effect which gets played when an Alert control is displayed by setting the Alert control&#8217;s <code>creationCompleteEffect</code> style.</p>
<p>The following example shows how you can apply a parallel Fade/Move effect when the Alert control is created by setting the the <code>creationCompleteEffect</code> effect/style in MXML and ActionScript.</p>
<p>Full code after the jump.</p>
<p><span id="more-799"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test_3/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/ --&gt;
&lt;mx:Application name="Alert_creationCompleteEffect_test_3"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;
            import mx.effects.easing.*;

            private function showAlert():void {
                var a:Alert = Alert.show("Nam vel nunc sed arcu fringilla fringilla. Cras dapibus nunc ut nisi.\\n" +
                        "Nullam porttitor mi et mauris.\\n" +
                        "Suspendisse hendrerit, turpis eu ornare suscipit, nulla sem tempus lorem,\\n" +
                        "sit amet semper nibh mi cursus neque.\\n" +
                        "Nulla vel purus. Sed a nulla. Quisque venenatis laoreet mi.",
                        "Lorem ipsum dolor sit amet, consectetuer adipiscing elit");
                a.isPopUp = false;
                a.cacheAsBitmap = true;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Verdana");
            fontFamily: VerdanaEmbedded;
        }

        @font-face {
            src: local("Verdana");
            fontFamily: VerdanaEmbedded;
            fontWeight: bold;
        }

        Alert {
            fontFamily: VerdanaEmbedded;
            creationCompleteEffect: alertCreationCompleteEffect;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Parallel id="alertCreationCompleteEffect"&gt;
        &lt;mx:Fade duration="500" /&gt;
        &lt;mx:Move yFrom="0"
                easingFunction="Elastic.easeOut"
                duration="1000" /&gt;
    &lt;/mx:Parallel&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button id="button"
                label="Click me"
                click="showAlert();" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test_3/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test_3/bin/main.html" width="100%" height="400"></iframe></p>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test_3/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/ --&gt;
&lt;mx:Application name="Alert_creationCompleteEffect_test_3"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        initialize="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.containers.ApplicationControlBar;
            import mx.controls.Alert;
            import mx.controls.Button;
            import mx.effects.easing.*;
            import mx.effects.Fade;
            import mx.effects.Move;
            import mx.effects.Parallel;

            [Embed(systemFont="Verdana",
                    fontName="VerdanaEmbedded",
                    fontWeight="normal",
                    mimeType="application/x-font")]
            private const verdanaEmbeddedNormal:Class;

            [Embed(systemFont="Verdana",
                    fontName="VerdanaEmbedded",
                    fontWeight="bold",
                    mimeType="application/x-font")]
            private const verdanaEmbeddedBold:Class;

            public var alertCreationCompleteEffect:Parallel;

            private var button:Button;

            private function init():void {
                var fader:Fade = new Fade();
                fader.duration = 500;

                var mover:Move = new Move();
                mover.yFrom = 0;
                mover.easingFunction = Elastic.easeOut;
                mover.duration = 1000;

                alertCreationCompleteEffect = new Parallel();
                alertCreationCompleteEffect.addChild(fader);
                alertCreationCompleteEffect.addChild(mover);

                button = new Button();
                button.label = "Click me";
                button.addEventListener(MouseEvent.CLICK, button_click);

                var appControlBar:ApplicationControlBar;
                appControlBar = new ApplicationControlBar();
                appControlBar.dock = true;
                appControlBar.addChild(button);
                addChildAt(appControlBar, 0);

                var alertStyles:CSSStyleDeclaration;
                alertStyles = StyleManager.getStyleDeclaration("Alert");
                alertStyles.setStyle("fontFamily", "VerdanaEmbedded");
            }

            private function button_click(evt:MouseEvent):void {
                showAlert();
            }

            private function showAlert():void {
                var a:Alert = Alert.show("Nam vel nunc sed arcu fringilla fringilla. Cras dapibus nunc ut nisi.\\n" +
                        "Nullam porttitor mi et mauris.\\n" +
                        "Suspendisse hendrerit, turpis eu ornare suscipit, nulla sem tempus lorem,\\n" +
                        "sit amet semper nibh mi cursus neque.\\n" +
                        "Nulla vel purus. Sed a nulla. Quisque venenatis laoreet mi.",
                        "Lorem ipsum dolor sit amet, consectetuer adipiscing elit");
                a.setStyle("creationCompleteEffect", alertCreationCompleteEffect);
                a.isPopUp = false;
                a.cacheAsBitmap = true;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating a custom creation complete effect on a Flex Alert control (redux) on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/',contentID: 'post-799',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'creationCompleteEffect',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/09/15/creating-a-custom-creation-complete-effect-on-a-flex-alert-control-redux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Sequencing effects in Flex using the mx:Sequence tag (redux)</title>
		<link>http://blog.flexexamples.com/2008/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/</link>
		<comments>http://blog.flexexamples.com/2008/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 03:41:33 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Effects]]></category>
		<category><![CDATA[Fade]]></category>
		<category><![CDATA[Pause]]></category>
		<category><![CDATA[Sequence]]></category>
		<category><![CDATA[SetPropertyAction]]></category>
		<category><![CDATA[WipeRight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/</guid>
		<description><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/">&#8220;Sequencing effects in Flex using the mx:Sequence tag&#8221;</a>, we saw how you could sequence tween effects using the &#60;mx:Sequence /&#62; tag.</p> <p>The following example shows how you can create the same sequenced effects using ActionScript instead of MXML.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Sequence_test_2/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/">&#8220;Sequencing effects in Flex using the mx:Sequence tag&#8221;</a>, we saw how you could sequence tween effects using the &lt;mx:Sequence /&gt; tag.</p>
<p>The following example shows how you can create the same sequenced effects using ActionScript instead of MXML.</p>
<p>Full code after the jump.</p>
<p><span id="more-605"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Sequence_test_2/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.effects.Fade;
            import mx.effects.Pause;
            import mx.effects.Sequence;
            import mx.effects.SetPropertyAction;
            import mx.effects.WipeRight;

            private var fader:Sequence;
            private var wiper:Sequence;

            private function fade_click():void {
                var fadeIn:Fade = new Fade();
                fadeIn.alphaFrom = 0.0;
                fadeIn.alphaTo = 1.0;

                var fadeOut:Fade = new Fade();
                fadeOut.alphaFrom = 1.0;
                fadeOut.alphaTo = 0.0;

                var pause:Pause = new Pause();
                pause.duration = slider.value;

                fader = new Sequence();
                fader.addChild(fadeIn);
                fader.addChild(pause);
                fader.addChild(fadeOut);

                fader.stop();
                fader.play([box]);
            }

            private function wipe_click():void {
                var wipeIn:WipeRight = new WipeRight();
                wipeIn.showTarget = true;

                var wipeOut:WipeRight = new WipeRight();
                wipeOut.showTarget = false;

                var pause:Pause = new Pause();
                pause.duration = slider.value;

                var alphaOn:SetPropertyAction = new SetPropertyAction();
                alphaOn.name = "alpha";
                alphaOn.value = 1.0;

                var alphaOff:SetPropertyAction = new SetPropertyAction();
                alphaOff.name = "alpha";
                alphaOff.value = 0.0;

                wiper = new Sequence();
                wiper.addChild(alphaOn);
                wiper.addChild(wipeIn);
                wiper.addChild(pause);
                wiper.addChild(wipeOut);
                wiper.addChild(alphaOff);

                wiper.stop();
                wiper.play([box]);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button label="fade box"
                click="fade_click();" /&gt;
        &lt;mx:Button label="wipe box"
                click="wipe_click();" /&gt;

        &lt;mx:Spacer width="100%" /&gt;

        &lt;mx:Label text="effect pause ({slider.value} ms):" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="1000"
                maximum="3000"
                value="1500"
                labels="[1000,2000,3000]"
                liveDragging="true"
                showTrackHighlight="true"
                snapInterval="100"
                tickInterval="500"
                dataTipPrecision="0" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Box id="box"
            width="100%"
            height="100%"
            backgroundColor="haloSilver"
            alpha="0.0" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Sequence_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Sequence_test_2/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Sequencing effects in Flex using the mx:Sequence tag (redux) on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/',contentID: 'post-605',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '',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/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Setting effects with ActionScript in Flex</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 03:55:23 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Effects]]></category>
		<category><![CDATA[Fade]]></category>
		<category><![CDATA[Rotate]]></category>
		<category><![CDATA[VBox]]></category>
		<category><![CDATA[hideEffect]]></category>
		<category><![CDATA[showEffect]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set effects on a Flex Image control using ActionScript by setting the showEffect and hideEffect effects using the setStyle() method.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/VBox_showEffect_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init();"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.effects.easing.*; private function [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set effects on a Flex Image control using ActionScript by setting the <code>showEffect</code> and <code>hideEffect</code> effects using the setStyle() method.</p>
<p>Full code after the jump.</p>
<p><span id="more-532"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/VBox_showEffect_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.effects.easing.*;

            private function init():void {
                img.setStyle("showEffect", rotate);
                img.setStyle("hideEffect", fade);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Fade id="fade" /&gt;
    &lt;mx:Rotate id="rotate"
            angleFrom="-180"
            angleTo="0"
            easingFunction="Elastic.easeInOut"
            duration="2000" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="visible:"&gt;
                &lt;mx:ToggleButtonBar id="toggleButtonBar"
                        itemClick="img.visible = event.item.data;"&gt;
                    &lt;mx:dataProvider&gt;
                        &lt;mx:Array&gt;
                            &lt;mx:Object label="Show" data="true" /&gt;
                            &lt;mx:Object label="Hide" data="false" /&gt;
                        &lt;/mx:Array&gt;
                    &lt;/mx:dataProvider&gt;
                &lt;/mx:ToggleButtonBar&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Image id="img"
            source="@Embed('assets/flashplayer_icon.jpg')"
            width="100"
            height="100" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/VBox_showEffect_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/VBox_showEffect_test/bin/main.html" width="100%" height="200"></iframe></p>
<p>Or, you can also create the effect using ActionScript instead of MXML, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/VBox_showEffect_test_2/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.effects.easing.*;
            import mx.effects.Fade;
            import mx.effects.Rotate;

            private var fade:Fade;
            private var rotate:Rotate;

            private function init():void {
                // Fade effect
                fade = new Fade();
                // Rotate effect
                rotate = new Rotate();
                rotate.angleFrom = -180;
                rotate.angleTo = 0;
                rotate.easingFunction = Elastic.easeInOut;
                rotate.duration = 2000;

                img.setStyle("showEffect", rotate);
                img.setStyle("hideEffect", fade);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="visible:"&gt;
                &lt;mx:ToggleButtonBar id="toggleButtonBar"
                        itemClick="img.visible = event.item.data;"&gt;
                    &lt;mx:dataProvider&gt;
                        &lt;mx:Array&gt;
                            &lt;mx:Object label="Show" data="true" /&gt;
                            &lt;mx:Object label="Hide" data="false" /&gt;
                        &lt;/mx:Array&gt;
                    &lt;/mx:dataProvider&gt;
                &lt;/mx:ToggleButtonBar&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Image id="img"
            source="@Embed('assets/flashplayer_icon.jpg')"
            width="100"
            height="100" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/VBox_showEffect_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/VBox_showEffect_test_2/bin/main.html" width="100%" height="200"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting effects with ActionScript in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/',contentID: 'post-532',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'hideEffect,showEffect',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/02/27/setting-effects-with-actionscript-in-flex/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Creating a custom creation complete effect on a Flex Alert control</title>
		<link>http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/</link>
		<comments>http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 17:07:01 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Alert]]></category>
		<category><![CDATA[Fade]]></category>
		<category><![CDATA[Parallel]]></category>
		<category><![CDATA[Rotate]]></category>
		<category><![CDATA[Sequence]]></category>
		<category><![CDATA[Zoom]]></category>
		<category><![CDATA[@font face]]></category>
		<category><![CDATA[creationCompleteEffect]]></category>
		<category><![CDATA[local()]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/</guid>
		<description><![CDATA[<p>The following example shows how to specify an effect which gets played when an Alert control is displayed by setting the Alert control&#8217;s creationCompleteEffect style. You can also see how to embed both the normal and bold font using CSS and @font-face.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how to specify an effect which gets played when an Alert control is displayed by setting the Alert control&#8217;s <code>creationCompleteEffect</code> style. You can also see how to embed both the normal and bold font using CSS and @font-face.</p>
<p>Full code after the jump.</p>
<p><span id="more-231"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Verdana");
            fontFamily: VerdanaEmbedded;
        }

        @font-face {
            src: local("Verdana");
            fontFamily: VerdanaEmbedded;
            fontWeight: bold;
        }

        Alert {
            fontFamily: VerdanaEmbedded;
            creationCompleteEffect: myEffect;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;

            private var alert:Alert;

            private function button_click():void {
                alert = Alert.show("The quick brown fox jumped over the lazy dog", "Lorem Ipsum");
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Sequence id="myEffect"&gt;
        &lt;mx:Parallel&gt;
            &lt;mx:Zoom /&gt;
            &lt;mx:Fade /&gt;
        &lt;/mx:Parallel&gt;
        &lt;mx:Rotate /&gt;
    &lt;/mx:Sequence&gt;

    &lt;mx:Button label="Launch Alert" click="button_click();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test/bin/main.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Alert_creationCompleteEffect_test/bin/main.html" width="100%" height="400"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating a custom creation complete effect on a Flex Alert control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/',contentID: 'post-231',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '@font face,creationCompleteEffect,local()',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/2007/10/12/creating-a-custom-creation-complete-effect-on-a-flex-alert-control/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Sequencing effects in Flex using the mx:Sequence tag</title>
		<link>http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/</link>
		<comments>http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 06:52:39 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Effects]]></category>
		<category><![CDATA[Fade]]></category>
		<category><![CDATA[Pause]]></category>
		<category><![CDATA[Sequence]]></category>
		<category><![CDATA[SetPropertyAction]]></category>
		<category><![CDATA[WipeRight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/</guid>
		<description><![CDATA[<p>The following example shows how you can use the &#60;mx:Sequence /&#62; MXML tag in Flex to create combined effects which execute in order. This example shows how to fade a display object in, pause, and then fade a display object out. Also, the same thing but with a combination of Wipe effects.</p> <p>Full code after [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use the &lt;mx:Sequence /&gt; MXML tag in Flex to create combined effects which execute in order. This example shows how to fade a display object in, pause, and then fade a display object out. Also, the same thing but with a combination of Wipe effects.</p>
<p>Full code after the jump.</p>
<p><span id="more-195"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Sequence_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function fade_click():void {
                fader.stop();
                fader.play([box]);
            }

            private function wipe_click():void {
                wiper.stop();
                wiper.play([box]);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Sequence id="fader"&gt;
        &lt;mx:Fade alphaFrom="0.0" alphaTo="1.0" /&gt;
        &lt;mx:Pause duration="{slider.value}" /&gt;
        &lt;mx:Fade alphaFrom="1.0" alphaTo="0.0" /&gt;
    &lt;/mx:Sequence&gt;

    &lt;mx:Sequence id="wiper"&gt;
        &lt;mx:SetPropertyAction name="alpha" value="1.0" /&gt;
        &lt;mx:WipeRight showTarget="true" /&gt;
        &lt;mx:Pause duration="{slider.value}" /&gt;
        &lt;mx:WipeRight showTarget="false" /&gt;
        &lt;mx:SetPropertyAction name="alpha" value="0.0" /&gt;
    &lt;/mx:Sequence&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button label="fade box"
                click="fade_click();" /&gt;
        &lt;mx:Button label="wipe box"
                click="wipe_click();" /&gt;

        &lt;mx:Spacer width="100%" /&gt;

        &lt;mx:Label text="effect pause ({slider.value} ms):" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="1000"
                maximum="3000"
                value="1500"
                labels="[1000,2000,3000]"
                liveDragging="true"
                showTrackHighlight="true"
                snapInterval="100"
                tickInterval="500"
                dataTipPrecision="0" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Box id="box"
            width="100%"
            height="100%"
            backgroundColor="haloSilver"
            alpha="0.0" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Sequence_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/Sequence_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Sequencing effects in Flex using the mx:Sequence tag on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/',contentID: 'post-195',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '',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/2007/09/19/sequencing-effects-in-flex-using-the-mxsequence-tag/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

