03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Methods inherited from class Object<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)<br />

align (TextFormat.align property)<br />

public align : String<br />

A string that indicates the alignment of the paragraph. You can apply this property to static<br />

<strong>and</strong> dynamic text. The following list shows possible values for this property:<br />

■ "left"—the paragraph is left-aligned.<br />

■ "center"—the paragraph is centered.<br />

■ "right"—the paragraph is right-aligned.<br />

The default value is null, which indicates that the property is undefined.<br />

Example<br />

The following example creates a text field with a border <strong>and</strong> uses TextFormat.align to<br />

center the text.<br />

var my_fmt:TextFormat = new TextFormat();<br />

my_fmt.align = "center";<br />

this.createTextField("my_txt", 1, 100, 100, 300, 100);<br />

my_txt.multiline = true;<br />

my_txt.wordWrap = true;<br />

my_txt.border = true;<br />

my_txt.text = "this is my first text field object text";<br />

my_txt.setTextFormat(my_fmt);<br />

blockIndent (TextFormat.blockIndent property)<br />

public blockIndent : Number<br />

A number that indicates the block indentation in points. Block indentation is applied to an<br />

entire block of text; that is, to all lines of the text. In contrast, normal indentation<br />

(TextFormat.indent) affects only the first line of each paragraph. If this property is null,<br />

the TextFormat object does not specify block indentation.<br />

TextFormat 657

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!