Flash MX 2004 Supported HTML tags

Source: Internet
Author: User

<b> Bold Label
Cases:
my_txt.htmltext= "<b> Bold </b>"


<br> Line-Wrapping label
Cases:
my_txt.htmltext= "Title of articles <br>"


<font> Font Label
Properties: Color: Font colors, formatting #rrggbb.
Face: Font, can be a single font or a list of fonts.
Size: Font size, per pixel.
Cases:
my_txt.htmltext= "<font color= ' #ff0000 ' face= ' Arial ' size= ' >this ' is a text</font>"


<i> Italic Label
Description
Cases:
my_txt.htmltext= "<i> Italic </i>"


<li> List item Labels
Cases:
my_txt.htmltext= "Sports:<li>football</li> <li>Boxing</li><li>Swimming</li>"
Notice that the text box will select multiple lines.


<p> paragraph marks
Properties: align: In its way, the desirable value left,right,center.
Class: Applies a CSS style class.
Cases:
my_txt.htmltext= "<p align= ' right ' class= ' title ' >align right</p><p align= ' left ' class= ' body ' >align Left</p> "
Notice that the text box will select multiple lines. This example assumes that the CSS class title and body already exist.


<span> Label
Description: Applies a CSS style to all text within the label, and is valid only after the CSS object is defined.
Properties: Class: Applies a CSS style class.
Cases:
my_txt.htmltext= "<span class= ' body ' >this be a text confined by css</span>


Note that this example assumes that the CSS class body already exists.



<u> Underline label
Cases:
my_txt.htmltext= "<u> underline </u>


Two Special Tags:
Image Labels
Description: This tab does not just insert pictures in a text box, it can also be inserted into SWF and MovieClip.
Attributes: src: The URL of the JPG or SWF to be loaded, or the link ID of the MC, this attribute is necessary, and the other attributes are optional.
Note: Flash does not support JPG in progressive format.
ID: Specifies the name of the movie clip embedded with jpg,swf or MovieClip.
Width: Picture/animation width.
Height: Picture/animation height.
Align: On its way, desirable value: Left,right, default to left.
Hspace: The horizontal orientation of the text around the chart and the space between the pictures.
Vspace: The space between the vertical and the picture when the text wraps around the chart.


<textformat> Text Format labels
Description: This tag allows you to apply the properties of some TextFormat objects directly to the text.
Properties: Blcokindent: Paragraph indent size, per pixel.
Indent: Indent The first line of the paragraph, in pixels.
Leading: Text line spacing, per pixel.
LeftMargin: Text left margin, per pixel.
RightMargin: Text right margin, per pixel.
TabStops: Table partition, per pixel.
Note: About attribute TabStops: Its value is an array that represents the column partitioning of the table.
Moves the output position to the next tab stop in the text with the escape character \ T.
Cases:
Tabfield= "<b>Name\tSex\tAge\t</b><br>";
Tabrecord1= "jinni\t20\tmale\t<br>";
Tabrecord2= "sucy\t21\tfemale\t<br>";
txt= "<textformat tabstops= ' [50,150,150] ' >" + tabfield+tabrecord1+tabrecord2+ "</textformat>";





Quality=high
Pluginspage= "Http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
Type= "Application/x-shockwave-flash" width=350 height=600>


  Click the source file to download



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.