Apples
Oranges
Lemons
Ordered and unordered lists (
so they do not modify how your list is rendered. All list items use bullets.
Paragraph tag
The
tag creates a new paragraph. You must set the text field to be a multiline text field to
<p>
use this tag.
The
tag supports the following attributes:
<p>
Specifies alignment of text within the paragraph; valid values are
align
, and
justify
center
Specifies a CSS style class defined by a TextField.StyleSheet object. (For more
class
information, see
"Using style classes" on page
The following example uses the
text field.
this.createTextField("myText_txt", 1, 10, 10, 400, 100);
myText_txt.html = true;
myText_txt.multiline = true;
myText_txt.htmlText = "<p align='right'>This text is aligned on the
right side of the text field</p>";
The following example uses the
var myStyleSheet:TextField.StyleSheet = new TextField.StyleSheet();
myStyleSheet.setStyle(".blue", {color:'#99CCFF', fontSize:18});
this.createTextField("test_txt", 10, 0, 0, 300, 100);
test_txt.html = true;
test_txt.styleSheet = myStyleSheet;
test_txt.htmlText = "<p class='blue'>This is some body-styled text.</
p>.";
Span tag
The
tag is available only for use with CSS text styles. (For more information, see
<span>
"Formatting text with Cascading Style Sheet styles" on page
attribute:
Specifies a CSS style class defined by a TextField.StyleSheet object. For more
class
information on creating text style classes, see
and
<ol>
.
attribute to align text on the right side of a
align
attribute to assign a text style class to a
class
tags) are not recognized by Flash Player,
<ul>
429.)
421.) It supports the following
"Using style classes" on page
Using HTML-formatted text
,
,
left
right
tag:
<p>
429.
441
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?
Questions and answers