MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 150

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

List item tag (<li>)
The
tag places a bullet in front of the text that it encloses.
<li>
Grocery list:
<li>Apples</li>
<li>Oranges</li>
<li>Lemons</li>
The above code would render as follows:
Grocery list:
Apples
Oranges
Lemons
Paragraph tag (<p>)
The
tag creates a new paragraph. It supports the following attributes:
<p>
Specifies alignment of text within the paragraph; valid values are
align
and
.
center
Specifies a CSS style class defined by an TextField.StyleSheet object. (For more
class
information, see
The following example uses the
textField.htmlText = "<p align='right'>This text is aligned on the right
side of the text field</p>";
The following example uses the
var myStyleSheet = new TextField.StyleSheet();
myStyleSheet.secreateTextField("test", 10, 0,0, 300,100);
createTextField("test", 10, 0,0, 300,100);
test.styleSheet = myStyleSheet;
test.htmlText = "<p class='body'>This is some body-styled text.</p>.";
Span tag (<span>)
The
tag is available only for use with CSS text styles. (For more information, see
<span>
"Formatting text with Cascading Style Sheets" on page
Specifies a CSS style class defined by an TextField.StyleSheet object. For more
class
information on creating text style classes, see
Text format tag (<textformat>)
The
<textformat>
class within HTML text fields, including line leading, indentation, margins, and tab stops. You
can combine
<textformat>
The
<textformat>
blockindent
TextFormat.blockIndent
Specifies the indentation from the left margin to the first character in the paragraph;
indent
corresponds to
150
Chapter 8: Working with Text
"Using style classes" on page
align
class
tag lets you use a subset of paragraph formatting properties of the TextFormat
tags with the built-in HTML tags.
tag has the following attributes:
Specifies the block indentation in points; corresponds to
. (See
TextFormat.blockIndent
. (See
TextFormat.indent
143.)
attribute to align text on the right side of a text field.
attribute to assign a text style class to a
139.) It supports the following attribute:
"Using style classes" on page
TextFormat.indent
,
left
right
tag.
<p>
143.
on page
718.)
on page
722.)
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents