as3 TextField 宽度根据文本内容自适应

[code]import flash.text.TextField;

import flash.text.TextFieldAutoSize;
var _txt:TextField = new TextField();
_txt.autoSize = TextFieldAutoSize.LEFT;
txt.wordWrap = true; //设置自动换行
txt.multiline = true; //允许多行[/code]

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>