topical media & game development

talk show tell print

explorer-effects-AnimatePropertyEffectExample.mx

explorer-effects-AnimatePropertyEffectExample.mx [swf] flex


  <?xml version="1.0"?>
  <!-- Simple example to demonstrate the AnimateProperty effect. -->
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
      <mx:Sequence id="animateScaleXUpDown" >
          <mx:AnimateProperty property="scaleX" fromValue="1" toValue="1.5" duration="1000" />
          <mx:AnimateProperty property="scaleX" fromValue="1.5" toValue="1" duration="1000" />        
      </mx:Sequence>
  
      <mx:Panel title="AnimateProperty Effect Example" width="75%" height="75%" 
          paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
  
          <mx:Text width="100%" color="blue" 
              text="Click on the image to use the AnimateProperty effect with the scaleX property."/>
  
          <mx:Image id="flex" source="@Embed(source='explorer-effects-assets-Nokia_6630.png')"
              mouseDownEffect="{animateScaleXUpDown}"/>
  
      </mx:Panel>
  </mx:Application>
  


(C) Æliens 27/08/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.