The htmlText element describes an html text with the attributes described below. Unlike text, the htmlText element can process basic HTML tags.
<htmlText id="objectId" x="xPosition" y="yPosition"
width="objectWidth" height="objectHeight" [color="color"]
[font="fontName"] [fontId="embededFontId"] [fontSize=""]
[align="textAlign"] [leftMargin=""] [rightMargin=""]
[indent="textIndent"] [leading="lineSpacing"]
[autoSize="isSizeAuto"] [border="hasBorder"]
[multiline="isMultiline"] [selectable="isSelectable"]
>
<![CDATA[Here goes your text...]]>
</htmlText>
Name |
Description |
Value type |
Optional |
Default Value |
| id |
Object identifier. |
no |
- |
|
| x |
Absolute x position of the text box (in pixels or twips). |
no |
- |
|
| y |
Absolute y position of the text box (in pixels or twips). |
no |
- |
|
| width |
Width of the text box (in pixels or twips). |
no |
- |
|
| height |
Height of the text box (in pixels or twips). |
no |
- |
|
| color |
Color of the text. |
yes |
- |
|
| font |
System font name which will be used to draw this text. If embedded font with the same name exists, it will not be used still. |
yes |
- |
|
| fontId |
Identifier of emeded font object which will be used to draw this text. Overrides font attribute if both are specified. |
yes |
- |
|
| fontSize |
Height of the font in standard coordinate units. |
yes |
- |
|
| leftMargin |
Left margin (empty space between the left side of the text and the bounding box). |
yes |
- |
|
| rightMargin |
Right margin (empty space between the right side of the text and the bounding box). |
yes |
- |
|
| indent |
Indents the first line of paragraphs. |
yes |
- |
|
| leading |
Defines line spacing. |
yes |
- |
|
| autoSize |
Enables text resize with movie if true. |
yes |
false |
|
| border |
Creates a border around the text box. |
yes |
false |
|
| multiline |
Defines a multiline text object. |
yes |
true |
|
| wordWrap |
Enables text area word wrap. |
yes |
true |
|
| selectable |
Enables text selection. |
yes |
false |
Place the HTML text between the tags <htmlText/></htmlText>, in the CDATA section.
HTML and non-HTML text formatting tags supported by Flash player are as follows.
HTML tags
|
<p [align="left"|"right"|"justify"]> ... </p> |
| Defines a paragraph. Alignment may be specified. |
|
<a href="url" [target="_blank|_parent|_self|_top|some_name"]> ... </a> |
|
Defines a hyperlink. Optional attribute target specifies window name, values _blank, _parent, _self, _top are predefined window names. With _blank url will be opened in the new window, with _parent - in the parent window, _self - the same window, _top - topmost window, some_name is the name of the target window or frame. If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target. |
|
<font [face="fontName"] [size="fontSize"] [color="#RRGGBB"]> ... </font> |
|
Defines a span of text with a font specified. Size attribute is specified in twips and may include a leading '+' or '-' for relative sizes. |
|
<b> ... </b> |
|
Defines a span of bold text. |
|
<i> ... </i> |
|
Defines a span of italic text. |
|
<u> ... <u/> |
|
Defines a span of underlined text. |
|
<li> ... </li> |
|
Defines a bulleted paragraph. The <ul> tag is not supported. Numbered lists are notsupported. |
Non HTML tags
|
<textformat [leftmargin="leftMargin"] [rightMargin="rightMargin"] |
|
Defines a span of text with certain formatting options. The following attributes are available: |
|
<tab> |
|
Inserts a tab character, which advances to the next tab stop as defined with <textformat>. |