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:
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...