Default properties of new text fields

Text fields created at runtime with createTextField() receive a default TextFormat object with the following properties:

align = "left"
blockIndent = 0
bold = false
bullet = false
color = 0x000000
font = "Times New Roman" (default font is Times on Mac OS X)
indent = 0
italic = false
kerning = false
leading = 0
leftMargin = 0
letterSpacing = 0
rightMargin = 0
size = 12
tabStops = [] (empty array)
target = ""
underline = false
url = ""

NOTE

 

The default font property on the Mac OS X is Times.

For a complete list of TextFormat methods and their descriptions, see TextFormat in the ActionScript 2.0 Language Reference.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000906.html