Programmatic Animation : Animation « Animation « Flash / Flex / ActionScript






Programmatic Animation

 

package{
    import flash.display.*;
    import flash.text.*;
    
    public class Main extends Sprite {
      public function Main(  ) {
        var t:TextField = new TextField(  );
        t.text          = "Hello";
        t.autoSize      = TextFieldAutoSize.LEFT;
        addChild(t);
    
        while (t.x <= 300) {
          t.x += 10;
        }
      }
    }
}

        








Related examples in the same category

1.A timer function-based animation
2.Animation and Speed
3.Animating by Frames
4.Animating with Pure ActionScript
5.Moving an Object