topical media & game development

talk show tell print

actionscript-animation-SlidingText.ax

actionscript-animation-SlidingText.ax [swf] flex


  package {
    import flash.text.*;
  
    public class @ax-actionscript-animation-SlidingText extends TextField {
      private var animator:actionscript_lib_animation_Animator;
   
      public function @ax-actionscript-animation-SlidingText (toX:Number, toY:Number, duration:Number) {
        animator = new actionscript_lib_animation_Animator(this);
        slideTo(toX, toY, duration);
      }
  
      public function slideTo (toX:Number, toY:Number, duration:Number):void {
        animator.animateTo(toX, toY, duration);
      }    
    }
  }
  


(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.