![MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual Download Page 112](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-extending-dreamweaver/dreamweaver-mx-2004-extending-dreamweaver_manual_3335562112.webp)
112
Chapter 5: Fireworks JavaScript API
Description
Adds a new image to the document containing the contents of the current paint-mode selection.
The new image is placed directly above the active bitmap. You must have a current pixel selection
for this to succeed. The new bitmap appears with Fireworks in paint mode.
dom.addNewImageViaCut()
Availability
Fireworks MX.
Usage
dom.addNewImageViaCut()
Arguments
None.
Returns
Nothing.
Description
Adds a new image to the document that contains the contents of the current paint mode
selection. The new image is placed directly above the active bitmap. You must have a current pixel
selection for this to succeed. The selection is cut from the previously active bitmap. The new
bitmap appears with Fireworks in paint mode.
dom.addNewLayer()
Availability
Fireworks 3.
Usage
dom.addNewLayer(
name
,
bshared
)
Arguments
name
A string that specifies the name for the new layer. If
name
is
null
, a new layer name
is generated.
bShared
A Boolean value that specifies whether the new layer is shared.
Returns
A string value that contains the name of the new layer.
Description
Adds a new layer to the document and makes it the current layer.
Example
The following command adds a new unshared layer with a default name that is generated
by Fireworks.
fw.getDocumentDOM().addNewLayer(null, false);
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...