您当前的位置: 首页 > 

Jave.Lin

暂无认证

  • 5浏览

    0关注

    704博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

AS3 TextBox ---- 输入框

Jave.Lin 发布时间:2012-03-22 13:47:18 ,浏览量:5

package
{
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFieldType;
	import flash.text.TextFormat;
	/**
	 * 输入框,习惯了C#的输入文本框的名称:TextBox
	 * @author Jave.Lin
	 */
	public class TextBox extends TextField
	{
		public function TextBox($x:Number=0,$y:Number=0,$width:Number=100,$height:Number=20)
		{
			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;
		}
	}
}
关注
打赏
1664331872
查看更多评论
立即登录/注册

微信扫码登录

0.0392s