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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

An integer that indicates the indentation from the left margin to the first character in the<br />

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

Example<br />

The following example creates a text field <strong>and</strong> sets the indentation to 10:<br />

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

mytext.multiline = true;<br />

mytext.wordWrap = true;<br />

mytext.border = true;<br />

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

myformat.indent = 10;<br />

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

mytext.setTextFormat(myformat);<br />

See also<br />

blockIndent (TextFormat.blockIndent property)<br />

italic (TextFormat.italic property)<br />

public italic : Boolean<br />

A Boolean value that indicates whether text in this text format is italicized. The default value<br />

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

Note: For Arabic, Hebrew, <strong>and</strong> Thai, this property works for paragraph-level formatting only.<br />

Example<br />

The following example creates a text field <strong>and</strong> sets the text style to italic.<br />

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

mytext.multiline = true;<br />

mytext.wordWrap = true;<br />

mytext.border = true;<br />

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

myformat.italic = true;<br />

mytext.text = "This is my first text field object text";<br />

mytext.setTextFormat(myformat);<br />

leading (TextFormat.leading property)<br />

public leading : Number<br />

TextFormat 663

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

Saved successfully!

Ooh no, something went wrong!