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 represents the amount of vertical space in pixels (called leading) between lines.<br />

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 leading to 10.<br />

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

my_fmt.leading = 10;<br />

this.createTextField("my_txt", 1, 100, 100, 100, 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 />

leftMargin (TextFormat.leftMargin property)<br />

public leftMargin : Number<br />

The left margin of the paragraph, in points. The default value is null, which indicates that<br />

the property is undefined.<br />

Example<br />

The following example creates a text field <strong>and</strong> sets the left margin 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.leftMargin = 20;<br />

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

mytext.setTextFormat(myformat);<br />

rightMargin (TextFormat.rightMargin property)<br />

public rightMargin : Number<br />

The right margin of the paragraph, in points. The default value is null, which indicates that<br />

the property is undefined.<br />

Example<br />

The following example creates a text field <strong>and</strong> sets the right margin to 20 points.<br />

664 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!