440 Working with Text and Strings
The <img> tag supports the following attributes:
■ src Specifies the URL to an image or SWF file, or the linkage identifier for a movie
clip symbol in the library. This attribute is required; all other attributes are optional.
External files (JPEG, GIF, PNG, and SWF files) do not show until they are downloaded
completely.
■ id Specifies the name for the movie clip instance (created by Flash Player) that contains
the embedded image file, SWF file, or movie clip. This is useful if you want to control the
embedded content with ActionScript.
■ width The width of the image, SWF file, or movie clip being inserted, in pixels.
■ height The height of the image, SWF file, or movie clip being inserted, in pixels.
■ align Specifies the horizontal alignment of the embedded image within the text field.
Valid values are
left and right. The default value is left.
■ hspace Specifies the amount of horizontal space that surrounds the image where no text
appears. The default value is 8.
■ vspace Specifies the amount of vertical space that surrounds the image where no text
appears. The default value is 8.
For more information and examples of using the
<img> tag, see “About embedding images,
SWF files, and movie clips in text fields” on page 445.
Italic tag
The <i> tag displays the tagged text in italics, as shown in the following code:
That is very <i>interesting</i>.
This code example would render as follows:
That is very interesting.
An italic typeface must be available for the font used.
List item tag
The <li> tag places a bullet in front of the text that it encloses, as shown in the
following code:
Grocery list:
<li>Apples</li>
<li>Oranges</li>
<li>Lemons</li>
This code example would render as follows:
Grocery list: