274
Chapter 5: Fireworks JavaScript API
Description
Replaces selected primitive objects with their equivalent paths. The new objects have all the
attributes (mask, stroke, fill, and so on) of the replaced ones.
See also
dom.addNewRectanglePrimitive()
fw.updateHTML()
Availability
Fireworks 4.
Usage
fw.updateHTML(
doc
,
htmlUrl
,
bRecoverFromError
)
Arguments
doc
A Document object that specifies the document to be used for updating the HTML (see
“Document object” on page 13
). If
doc
is
null
, the active document is used.
htmlUrl
The filename of the HTML file to update, which is expressed as a file://URL. To force
Fireworks to display the Update HTML dialog box, pass
null
for
htmlUrl
. If you pass
null
for
htmlUrl
,
bRecoverFromError
is ignored.
bRecoverFromError
If
bRecoverFromError
is
true
and the HTML update encounters an
error, Fireworks displays a Confirmation dialog box and attempts to recover. If it is
false
,
Fireworks fails without notifying the user if it encounters an error.
Returns
A Boolean value:
true
if the HTML was updated;
false
otherwise.
Description
Updates the HTML that was previously exported from Fireworks.
Example
The following command updates the images in an HTML file, using the current document.
fw.updateHTML(null, "file:///C|/mysite/nav.htm", true);
fw.writePanelStateToFile()
Availability
Fireworks MX.
Usage
fw.writePanelStateToFile(
filepath
)
Arguments
filepath
A string that identifies the destination XML file in the format file://URL.
Содержание DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Страница 1: ...Extending Fireworks...
Страница 4: ...4 Contents...
Страница 8: ...8 Chapter 1 Extending Fireworks Overview...
Страница 102: ...102 Chapter 4 Auto Shapes...
Страница 284: ...284 Chapter 5 Fireworks JavaScript API...