package
{
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
import flash.text.TextFormat;
/**
* 富文本输入框,习惯了C#的输入文本框的名称:RichTextBox
* @author Jave.Lin
*/
public class RichTextBox extends TextField
{
public function RichTextBox($x:Number=0,$y:Number=0,$width:Number=100,$height:Number=100)
{
super();
x = x;
y = y;
width = $width;
height = $height;
defaultTextFormat = new TextFormat("Verdana", 10, 0);
autoSize = TextFieldAutoSize.LEFT;
wordWrap = true;
type = TextFieldType.INPUT;
border=true;
}
}
}AS3 RichTextBox ---- 富文本输入框
最新推荐文章于 2026-01-06 09:10:20 发布
本文介绍了一个Flash环境下实现的富文本输入框组件RichTextBox。该组件继承自TextField,并对其进行了扩展,支持自定义尺寸、字体样式及自动换行等功能。

820

被折叠的 条评论
为什么被折叠?



