topical media & game development

talk show tell print

professional-flex-code-07-CompositeEffectWithEasing.mx

professional-flex-code-07-CompositeEffectWithEasing.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
          <mx:Script>
                  <![CDATA[
                          import mx.effects.easing.Exponential;
                  ]]>
          </mx:Script>
  
          <mx:Parallel id="parallelEffect" target="{myPanel}">
                  <mx:Resize widthBy="150" heightBy="150" easingFunction="{Exponential.easeOut}" />
                  <mx:Blur blurXTo="5" blurYTo="5" />
          </mx:Parallel>
          
          <mx:Sequence id="sequenceEffect" target="{myPanel}">
                  <mx:Resize widthBy="-150" heightBy="-150" easingFunction="{Exponential.easeOut}" />
                  <mx:Blur blurXTo="0" blurYTo="0" />
          </mx:Sequence>
          
          <mx:Panel title="Panel" id="myPanel" width="100" height="100" />
          
          <mx:Button label="Parallel Effect" click="parallelEffect.play()" />
          <mx:Button label="Sequence Effect" click="sequenceEffect.play()" />
          
          <mx:ComboBox openEasingFunction="{Exponential.easeInOut}" closeEasingFunction="{Exponential.easeInOut}" openDuration="250" closeDuration="500">
                  <mx:dataProvider>
                          <mx:Array>
                                  <mx:Object label="Simon Barber" />
                                  <mx:Object label="Rich Tretola" />
                                  <mx:Object label="Renaun Erikson" />
                          </mx:Array>
                  </mx:dataProvider>
          </mx:ComboBox>
          
  </mx:Application>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.