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

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

Advertisement

ADOBE FIREWORKS CS3
127
Extending Guide
Usage
dom.setDocumentCanvasColor(color)
Arguments
A color string (see "Color string data type" on page 5).
color
Returns
Nothing.
Description
Sets the canvas color of the document to the specified color.
Example
The following command sets the canvas color to blue:
fw.getDocumentDOM().setDocumentCanvasColor("#0000ff");
dom.setDocumentCanvasSize()
Availability
Fireworks 3, with new argument added in Fireworks CS3
Usage
dom.setDocumentCanvasSize(boundingRectangle, currentPageOnly)
Arguments
A rectangle that specifies the new canvas size for the document, in pixels (see "Rectangle
boundingRectangle
data type" on page 6). Any items outside the specified rectangle are removed.
A Boolean value that specifies whether the change in canvas size applies to all pages or only
currentPageOnly
the current page. If the value is
, only the current page is resized. If it is
, all pages of the document are
true
false
resized. The default value is
.
true
Returns
Nothing.
Description
Sets the document's canvas size to the specified rectangle and apply the change to the current page or all pages.
Example
The following command sets the canvas to a size of 200 by 200 pixels:
fw.getDocumentDOM().setDocumentCanvasSize({left:150, top:150, right:350, bottom:350});
dom.setDocumentCanvasSizeToDocumentExtents()
Availability
Fireworks 3.
Usage
dom.setDocumentCanvasSizeToDocumentExtents(bGrowCanvas)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents