Adobe 38039927 - Fireworks CS3 - PC Extended User Manual page 41

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

Advertisement

Arguments
A rectangle that specifies the bounds within which to place the new text box (see "Rectangle
boundingRectangle
data type" on page 6).
If
bInitFromPrefs
bInitFromPrefs
most recent values set by the user are used.
Returns
Nothing.
Description
Adds a new empty text block within the specified bounding rectangle. (To place text in the box, use
.)
tRuns()
Example
The following command adds a text box with the most recently used style properties:
fw.getDocumentDOM().addNewText({left:43, top:220, right:102, bottom:232}, true);
dom.addSwapImageBehaviorFromPoint()
Availability
Fireworks 3.
Usage
dom.AddSwapImageBehaviorFromPoint(where)
Arguments
A point that specifies the x,y coordinates of the Hotspot or slice that contains the swap image behavior to
where
be added (see "Point data type" on page 6).
Returns
if the swap image behavior was added;
true
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
in the document.
where
dom.adjustExportToSize()
Availability
Fireworks 3.
Usage
dom.AdjustExportToSize(sizeInBytes, bOkToIncreaseSize)
Arguments
An integer that specifies the size to be used for exporting. It is used as described in the following list:
sizeInBytes
• If a document has no slices,
less than or equal to
sizeInBytes
is
, the default values for all style properties are used. If it is
false
if no suitable Hotspot was at the specified location.
false
adjusts the export settings for the current frame so that the image is
sizeInBytes
.
ADOBE FIREWORKS CS3
37
Extending Guide
, the
true
dom.setTex-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents