Set horizontal scroll value : Scroll : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Scroll »

 

Set horizontal scroll value


 
package {

  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
        
        field.autoSize = flash.text.TextFieldAutoSize.LEFT;
        field.wordWrap = true;
        field.text = "AAA BBB CCC DDD AAA BBB CCC DDD AAA BBB CCC DDD AAA BBB CCC DDD";
        addChild(field);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» Scroll


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0