Set the scroll related properties : Scroll : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Scroll »

 

Set the scroll related properties


 
package {

  import flash.display.Sprite;
  import flash.text.TextField;
  public class Main extends Sprite {
    public function Main(  ) {
      var field:TextField = new TextField(  );
  
        field.scrollV = field.bottomScrollV;
        field.scrollV = field.bottomScrollV + 1;
        
        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