Creating Backgrounds for a TextField : background « TextField « Flash / Flex / ActionScript






Creating Backgrounds for a TextField

 

package{
  import flash.display.Sprite;
  import flash.text.*;
  public class Main extends Sprite{
    public function Main(){
        var txt:TextField = new TextField();
        txt.backgroundColor = 0x0000FF;
        txt.background = true;
        addChild(txt);
    }
  }
}

        








Related examples in the same category

1.Create the TextField
2.Creating a Background for a Text Field