Creating an Outline Around a Text Field : border « TextField « Flash / Flex / ActionScript






Creating an Outline Around a Text Field

 
package {

  import flash.display.Sprite;
  import flash.text.TextField;
  public class Main extends Sprite {
    public function Main(  ) {
      var field:TextField = new TextField(  );
      field.border = true;
        field.borderColor = 0xFF00FF;  // Make the border violet.
        addChild(field);
    }
  }
}

        








Related examples in the same category

1.Displaying text with a border and background
2.Resizable bottom border only