Resizable bottom border only : border « TextField « Flash / Flex / ActionScript






Resizable bottom border only

 
package {
  import flash.display.*;
  import flash.text.*;

  public class HelloWorld extends Sprite {
    public function HelloWorld (  ) {
      var t:TextField = new TextField(  );
      t.text = "Hello world, how are you?";
      t.background = true;
      t.backgroundColor = 0xCCCCCC;
      t.border = true;
      t.borderColor = 0x333333;

      t.autoSize = TextFieldAutoSize.LEFT;
      t.wordWrap = true;

      addChild(t);
    }
  }
}

        








Related examples in the same category

1.Creating an Outline Around a Text Field
2.Displaying text with a border and background