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