topical media & game development

talk show tell print

professional-flex-code-07-CompositeEffect.mx

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


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
          <mx:Parallel id="parallelEffect" target="{myPanel}">
                  <mx:Resize widthBy="150" heightBy="150" />
                  <mx:Blur blurXTo="5" blurYTo="5" />
          </mx:Parallel>
          
          <mx:Sequence id="sequenceEffect" target="{myPanel}">
                  <mx:Resize widthBy="-150" heightBy="-150" />
                  <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: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.