topical media & game development

talk show tell print

explorer-effects-PauseEffectExample.mx

explorer-effects-PauseEffectExample.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <!-- Simple example to demonstrate the Pause effect. -->
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
      <mx:Script>
          <![CDATA[
              import mx.effects.easing.*;                   
          ]]>
      </mx:Script>
  
      <mx:Sequence id="movePauseMove">
          <mx:Move xBy="150" duration="2000" easingFunction="Bounce.easeOut"/>
          <mx:Pause duration="2000"/>
          <mx:Move xBy="-150" duration="2000" easingFunction="Bounce.easeIn"/>
      </mx:Sequence>
  
      <mx:Panel title="Pause Effect Example" width="75%" height="75%" 
          paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
  
          <mx:Text width="100%" color="blue" 
                      text="Click the phone image to start the Sequence effect. The effect pauses for 2 seconds between moves."/>
  
          <mx:Image
              source="@Embed(source='explorer-effects-assets-Nokia_6630.png')" 
              mouseDownEffect="{movePauseMove}"/>
  
      </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.