Creating a Background for a Text Field : Background : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Background »

 

Creating a Background for 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.background = true;
        field.backgroundColor = 0x00FFFF// Set the background to light blue

      addChild(field);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo TextField
» Background