ImageMap object

The following table lists the properties and methods of the ImageMap object, along with their data types and, where appropriate, acceptable values and notes. All ImageMap object properties are read-only.

Property (read-only) or Method Data type Notes

altText

string

The alternate text description for this slice, if any.

behaviors

object

BehaviorsList object that contains the behaviors for this slice (see BehaviorsList object).

hasAltText

Boolean

Set to true if the slice has an alternate text description.

hasHref

Boolean

Set to true if the slice has a URL.

hasTargetText

Boolean

Set to true if the target text is not empty.

href

string

The URL link for this slice, which is expressed as file://URL.

numCoords

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.

radius

integer

Radius of the area, if shape is "circle".

shape

string

Acceptable values are "circle", "poly", and "rect".

targetText

string

Target text for this image, if any.

xCoord(index)

zero-based index

Returns the x coordinate for the specified point, in 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).

yCoord(index)

zero-based index

Returns the y coordinate for the specified point, in pixels. See xCoord().


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fireworks/8/fwextending/fw_02_65.htm