User Guide

Insert object functions 161
Arguments
arrayOfIndices
The arrayOfIndices function is an array of position indices in the History panel. If no
argument is supplied, all the steps are unselected.
Returns
Nothing.
Example
The following code selects the first, second, and third steps in the History panel:
dreamweaver.historyPalette.setSelectedSteps([0,1,2]);
dreamweaver.historyPalette.setUndoState()
Availability
Dreamweaver 3.
Description
Performs the correct number of undo or redo operations to arrive at the specified undo state.
Arguments
undoState
The undoState argument is the object that the
dreamweaver.historyPalette.getUndoState() function returns.
Returns
Nothing.
Insert object functions
Insert object functions handle operations related to the objects on the Insert bar or listed on the
Insert menu.
dom.insertFlashElement()
Availability
Dreamweaver MX 2004.
Description
Inserts a specified Flash element (SWC file) into the current document. This function assumes
that the Flash element has been added to the Insert bar, and the component file resides in the
Configuration/Objects/FlashElements folder or subfolder.
Arguments
swcFilename
The swcFilename string is the path and name of the desired flash component relative to the
Configuration/Objects/FlashElements folder.
000_DW_API_Print.book Page 161 Wednesday, August 20, 2003 9:14 AM