| | | | | | | [文章信息] | | | 作者: | 莫治雄 | | 时间: | 2002-07-04 | | 出处: | 天极设计在线 | | 责任编辑: | Shiny | |
| [文章导读] | | | 在Flash 5中文本框只能在设计阶段创建,而在Flash MX中,我们可以使用动作脚本在运行期动态创建并调整属性 | |
| |
|
| | | |
|
|
|
|
|
| 2.TextFormat对象的属性和方法
(1)TextFormat的方法
|
方法 |
说明 |
|
TextFormat.getTextExtent |
返回包含宽度和高度属性(指明文本框中文本的大小)的对象。 |
(2)TextFormat的属性
|
属性 |
说明 |
|
TextFormat.align |
指定段落的对齐方式。 |
|
TextFormat.blockIndent |
指定块缩进(以点表示)。 |
|
TextFormat.bold |
指定文本是否是粗体。 |
|
TextFormat.bullet |
指定文本是否是一个以黑点作为项目符号的无序列表。 |
|
TextFormat.color |
指定文本的颜色。 |
|
TextFormat.font |
用文本格式指定文本的字体名。 |
|
TextFormat.indent |
指定段落第一个字符的左缩进。 |
|
TextFormat.italic |
指定文本是否是斜体。 |
|
TextFormat.leading |
指定行间距。 |
|
TextFormat.leftMargin |
指定段落左边界(以点为单位)。 |
|
TextFormat.rightMargin |
指定段落右边界(以点为单位)。 |
|
TextFormat.tabStops |
指定自定义的制表位。 |
|
TextFormat.target |
指定显示超链接的浏览器窗口。 |
|
TextFormat.size |
指定文本的字体大小。 |
|
TextFormat.underline |
指定文本是否有下划线。 |
|
TextFormat.url |
指定文本链接的URL。 |
|
|
|
|
|
|
|
|