CSS styles supported by As3.0 HTMLText __html

Source: Internet
Author: User
The The
label descrīption
Anchor label <a> tags create hypertext links and support the following properties: href: This URL can be an absolute or relative path (relative to the location of the SWF file that loading the page). The http://www.adobe.com example represents an absolute reference to a URL;/index.html example represents a relative reference. An absolute URL must be prefixed with http://, or Flash will treat it as a relative URL. Event: Use the event attribute to specify the Text property of the link textevent that is scheduled when the user clicks a hypertext link. For example, event:myevent when the user clicks the Hypertext link, the text field schedules the link textevent whose Text property is set to "MyEvent." Target: Specifies the name of the target window on which the page is loaded. Options include _self, _blank, _parent, and _top. The _self option specifies the current frame in the current window, _blank specifies a new window, _parent specifies the parent of the current frame, and _top specifies the top-level frame in the current window.

You can use the link event to enable the link to execute the ACTIONSCRĪPT function in the SWF file, rather than opening the URL.

You can also use style sheets to define A:link, A:hover, and a:active styles for anchor labels.

Bold label The <b> label renders text in bold form. Bold must be available for the font used.
Line Wrap Label The <br> tab creates a newline character in the text field. To use this label, you must set the text field to a multiline text field.
font label <font> label Specifies a font or a list of fonts to display text. Font labels support the following properties: color: Only hexadecimal color (#FFFFFF) values are supported. Face: Specifies the name of the font to use. As shown in the following example, you can specify a comma-delimited list of font names, in which case Flash Player selects the first available font. If the specified font is not installed on the user's computer system, or if the specified font is not embedded in the SWF file, Flash Player selects the alternate font. Size: Specifies the font size. You can use an absolute pixel size (such as 16 or 18), or you can use a relative point value (such as +2 or-4).
image label uses labels to embed external image files (JPEG, GIF, PNG), SWF files, and movie clips in a text field. In a text field, text wraps next to an embedded image. To use this label, you must set the text field to multiple lines and text wrapping. The

tag supports the following properties: src: Specifies the URL of the image or SWF file, or the link identifier of the movie clip symbol in the library. This property is required and all other properties are optional. External files (JPEG, GIF, PNG, and SWF files) are displayed only after a full download. Width: The breadth, in pixels, of the inserted image, SWF file, or movie clip. Height: The altitude, in pixels, of the inserted image, SWF file, or movie clip. Align: Specifies the horizontal alignment of the embedded image in the text field. Valid values are left and right. The default value is left. Hspace: Specifies the amount of horizontal space that does not show any text around the image. The default value is 8. Vspace: Specifies the amount of vertical space that does not show any text around the image. The default value is 8. ID: Specifies the name of the movie clip instance (created by Flash Player) that contains the embedded image file, SWF file, or movie clip. This property can be used to control what is embedded with actionscrīpt. Checkpolicyfile: Specifies that Flash Player will check the Cross-domain policy file on the server that is associated with the domain of the image. If a cross-domain policy file exists, the SWF file in the domain listed in this file can access the data that loads the image, for example by calling the Bitmapdata.draw () method that uses this image as the source parameter. For more information, see the Flash Player Security chapter in ACTIONSCRĪPT 3.0 programming.

Flash Displays the media embedded in the text field in full size. To specify the dimensions of the embedded media, use the height and width properties of the label.

Typically, an image embedded in a text field appears on the line after the label. However, if the label is the first character in a text field, the image appears on the first line of the text field.

Italic label The <i> tab displays the text in the label in italic form. Italics must be available for the font used.
List Item label <li> tags Place bullets before the contained text. Note: because Flash Player does not recognize ordered and unordered list labels (<ol> and <ul>), these labels cannot modify how the list is rendered. All lists are unordered, and all list items use bullets.
Paragraph label <p> label to create a new paragraph. To use this label, you must set the text field to a multiline text field. <p> tags support the following properties: Align: Specifies the alignment of text within a paragraph; Valid values are left, right, justify, and center. Class: Specifies the CSS style class defined by the Flash.text.StyleSheet object.
Span Label <span> labels are available only for CSS text styles. It supports the following properties: class: Specifies the CSS style class defined by the Flash.text.StyleSheet object.
Text Format labels

Use the <textformat> tab to set a subset of the properties in a text field using the paragraph formatting of the TextFormat class, including line spacing, indents, margins, and Tab stops. You can use the <textformat> tags in conjunction with the built-in HTML tags.

<textformat> tags have the following properties: Blockindent: Specifies the block indent (in points), and corresponds to the textformat.blockindent. Indent: Specifies the indent from the left margin to the first character in the paragraph, corresponding to the textformat.indent. Both positive and negative numbers are acceptable. Leading: Specifies the leading amount (vertical spacing) between rows and rows, and corresponds to textformat.leading. Both positive and negative numbers are acceptable. LeftMargin: Specifies the left margin (in points) of the paragraph, corresponding to the textformat.leftmargin. RightMargin: Specifies the right margin (in points) of the paragraph, corresponding to the textformat.rightmargin. TabStops: Specifies the custom Tab stop as an array of nonnegative integers, corresponding to the textformat.tabstops.

Underline label The <u> label adds an underscore to the label text.

Flash Player supports the following HTML entities:

Entity descrīption
&lt; < (less than)
&gt; > (greater than)
&amp; & (And)
&quot; "(double quotes)
&apos; ' (apostrophes, single quotes)

Flash also supports explicit character codes, such as & #38; (ASCII and number) and & #x20AC; (Unicode

Http://hi.baidu.com/%B1%F9%D3%B0%BB%A5%B6%AF/home

Related Article

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.