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.

See also<br />

url (TextFormat.url property)<br />

TextFormat constructor<br />

public TextFormat([font:String], [size:Number], [color:Number],<br />

[bold:Boolean], [italic:Boolean], [underline:Boolean], [url:String],<br />

[target:String], [align:String], [leftMargin:Number],<br />

[rightMargin:Number], [indent:Number], [leading:Number])<br />

Creates a TextFormat object with the specified properties. You can then change the properties<br />

of the TextFormat object to change the formatting of text fields.<br />

Any parameter may be set to null to indicate that it is not defined. All of the parameters are<br />

optional; any omitted parameters are treated as null.<br />

Parameters<br />

font:String [optional] - The name of a font for text as a string.<br />

size:Number [optional] - An integer that indicates the point size.<br />

color:Number [optional] - The color of text using this text format. A number containing<br />

three 8-bit RGB components; for example, 0xFF0000 is red, <strong>and</strong> 0x00FF00 is green.<br />

bold:Boolean [optional] - A Boolean value that indicates whether the text is boldface.<br />

italic:Boolean [optional] - A Boolean value that indicates whether the text is italicized.<br />

underline:Boolean [optional] - A Boolean value that indicates whether the text is<br />

underlined.<br />

url:String [optional] - The URL to which the text in this text format hyperlinks. If url is<br />

an empty string, the text does not have a hyperlink.<br />

target:String [optional] - The target window where the hyperlink is displayed. If the target<br />

window is an empty string, the text is displayed in the default target window _self. If the url<br />

parameter is set to an empty string or to the value null, you can get or set this property, but<br />

the property will have no effect.<br />

align:String [optional] - The alignment of the paragraph, represented as a string. If<br />

"left", the paragraph is left-aligned. If "center", the paragraph is centered. If "right", the<br />

paragraph is right-aligned.<br />

leftMargin:Number [optional] - Indicates the left margin of the paragraph, in points.<br />

rightMargin:Number [optional] - Indicates the right margin of the paragraph, in points.<br />

indent:Number [optional] - An integer that indicates the indentation from the left margin to<br />

the first character in the paragraph.<br />

TextFormat 667

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

Saved successfully!

Ooh no, something went wrong!