import flash.display.Sprite; import flash.text.TextField; public class Main extends Sprite { public function Main( ) { var field:TextField = new TextField( );
field.scrollH = 0; // Scroll to the far left field.scrollH += 1; // Scroll to the right 1 pixel field.scrollH = field.maxScrollH; // Scroll to the far right