User Guide

182 Chapter 5: Fireworks JavaScript API
dom.replaceButtonTextStringsInInstances()
Availability
Fireworks 3.
Usage
dom.replaceButtonTextStringsInInstances(newString, uniformAttrs)
Arguments
newString
Specifies the string to be used as replacement text.
uniformAttrs If uniformAttrs is false, each character retains the attributes of the character
that was formerly in its position; that is, Fireworks preserves the existing formatting. If
uniformAttrs is true, all characters assume the attributes of the first character in the string that
is being replaced.
Returns
Nothing.
Description
Replaces selected button text items with the specified string. (Button text items are defined as the
topmost text items on each frame.)
See also
dom.replaceButtonTextStrings()
dom.replaceTextString()
Availability
Fireworks 3.
Usage
dom.replaceTextString(newString, uniformAttrs)
Arguments
newString
Specifies the string to be used as replacement text.
uniformAttrs If uniformAttrs is false, each character retains the attributes of the character
that was formerly in its position; that is, Fireworks preserves the existing formatting. If
uniformAttrs is true, all characters assume the attributes of the first character in the string that
is being replaced.
Returns
Nothing.
Description
Replaces the text of all selected text items with the specified string.