![MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual Download Page 311](http://html1.mh-extra.com/html/macromedia/fireworks-8-extending-fireworks/fireworks-8-extending-fireworks_manual_3339145311.webp)
Fireworks functions
311
Arguments
size
A point whose
x
value specifies the document’s width and whose
y
value specifies the
document’s height. Both values are in pixels.
res
Specifies the resolution for the scaled document (see
“Resolution data type”
on page 12
).
backgroundColor
A color string (see
“Color string data type” on page 11
).
Returns
The Document object for the newly created document (see
“Document object” on page 14
).
Description
Opens a new document and selects it. Values for size, resolution, and color are explicitly
specified. To open a new document with the current default values, use
fw.createDocument()
.
Example
The following command creates a new document that is 500 by 500 pixels in size, with a
resolution of 72 dpi and a solid white background color:
fw.createFireworksDocument({x:500,y:500},{pixelsPerUnit:72,units:"inch"},
"#ffffff");
See also
fw.createDocument()
fw.disableFlashDebugging()
Availability
Fireworks MX
Usage
fw.disableFlashDebugging()
Arguments
None.
Returns
Nothing.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...