Imagemaplist Object; Sliceinfo Object - Adobe 38039927 - Fireworks CS3 - PC Extended User Manual

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

Property (read-only) or Method
hasTargetText
href
numCoords
radius
shape
targetText
xCoord(index)
yCoord(index)

ImagemapList object

The ImagemapList object is an array of ImageMap objects that describe the areas in an image map (see "ImageMap
object" on page 252). To access ImageMap objects, use the ImagemapList array, as shown below:
var curImagemap = ImagemapList[i];
The ImagemapList object has only one property, which is read-only and shown in the following table.
Property (read-only)
numberOfURLs

SliceInfo object

The following table lists the properties and methods of the SliceInfo object, along with their data types and, where
appropriate, acceptable values and notes. All SliceInfo object properties are read-only.
Data type
Notes
Boolean
Set to
true
string
The URL link for this slice, which is expressed as
file://URL.
integer
Number of coordinates in the area. A circle always
has 1 (the center), a rectangle has 2 (top left and
bottom right), and a polygon has 1 or more.
integer
Radius of the area, if
string
Acceptable values are
and
"rect"
string
Target text for this image, if any.
Returns the x coordinate for the specified point, in
zero-based index
pixels. For example, the following commands return
the coordinates for the first point:
var x = imagemap.xCoord(0);
var y = imagemap.yCoord(0);
It is possible to have negative values if the image map
area is drawn so that it crosses the left or top sides of
the image (or sliced image).
Returns the y coordinate for the specified point, in
zero-based index
pixels. See
Data type
Notes
integer
The number of image map areas in the image map list
(
or more).
0
if the target text is not empty.
shape
is
"circle"
.
,
"circle"
"poly"
.
.
xCoord()
ADOBE FIREWORKS CS3
Extending Guide
,
253

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents