User Guide
118 Chapter 5: Fireworks JavaScript API
Returns
true
if the swap image behavior was added; false if no suitable Hotspot was at the
specified location.
Description
If a single Hotspot or slice is selected, this function adds to it a swap image behavior from the
Hotspot or slice located at
where in the document.
dom.adjustExportToSize()
Availability
Fireworks 3.
Usage
dom.AdjustExportToSize(sizeInBytes, bOkToIncreaseSize)
Arguments
sizeInBytes
An integer that specifies the size to be used for exporting. It is used as described
in the following list:
• If a document has no slices, sizeInBytes adjusts the export settings for the current frame so
that the image is less than or equal to
sizeInBytes.
• If a document has slices, sizeInBytes adjusts the size of all exported images so that the sum of
the sizes is greater than or equal to
sizeInBytes.
bOkToIncreaseSize Specifies whether the export file size can be increased.
• If bOkToIncreaseSize is true, and the current size is less than sizeInBytes, the argument
increases the quality of the export settings as much as possible, making the export size larger
if necessary.
• If bOkToIncreaseSize is false, the argument increases the quality of the export settings as
much as possible without increasing the export size.
Description
Adjusts the export settings as specified.
dom.adjustFontSize()
Availability
Fireworks MX.
Usage
dom.adjustFontSize(amount)
Arguments
amount
The amount, specified in points, by which to change the font size. Positive values (such
as
"2pt") increase the size, while negative values (such as "-1pt") decrease the size.
Returns
Nothing.