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.

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.rightMargin = 20;<br />

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

mytext.setTextFormat(myformat);<br />

size (TextFormat.size property)<br />

public size : Number<br />

The point size of text in this text format. The default value is null, which indicates that the<br />

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 size to 20 points.<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.size = 20;<br />

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

mytext.setTextFormat(myformat);<br />

tabStops (TextFormat.tabStops property)<br />

public tabStops : Array<br />

Specifies custom tab stops as an array of non-negative integers. Each tab stop is specified in<br />

pixels. If custom tab stops are not specified (null), the default tab stop is 4 (average character<br />

width).<br />

Note: For Flash Lite, this property works for embedded fonts only. This property is not<br />

supported for Arabic, Hebrew, <strong>and</strong> Thai.<br />

TextFormat 665

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

Saved successfully!

Ooh no, something went wrong!