User Guide
154 Fireworks JavaScript API
Arguments
bNoNullFills If bNoNullFills is true and the current fill is None, then a default fill is
applied instead of no fill.
Returns
Nothing.
Description
Applies the document’s current fill to the selection.
Example
The following command applies the current fill to the selection:
fw.getDocumentDOM().applyCurrentFill(true);
dom.applyEffects()
Availability
Fireworks 3.
Usage
dom.ApplyEffects(effectList)
Arguments
effectList An EffectList object (see “EffectList object” on page 48). If effectList is
null, this function removes all effects from the selection.
Returns
Nothing.
Description
Applies the specified effects to the selection.
Example
The following command applies a drop shadow with an angle of 315, a blur of 4, a color of
black, and a distance of 7 (see “Drop Shadow object” on page 44):
fw.getDocumentDOM().applyEffects({category:"Untitled", effects:[ {
EffectIsVisible:true, EffectMoaID:"{a7944db8-6ce2-11d1-
8c76000502701850}", ShadowAngle:315, ShadowBlur:4,
ShadowColor:"#000000a6", ShadowDistance:7, ShadowType:0, category:"Shadow
and Glow", name:"Drop Shadow" } ], name:"Untitled" });