ADOBE FIREWORKS CS3
41
Extending Guide
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
An EffectList object (see "EffectList object" on page 221). If
is
, this function
effectList
effectList
null
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 217):
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" });
dom.applyFontMarkup()
Availability
Fireworks 3.
Usage
dom.applyFontMarkup(fontAttribute, value)
Arguments
Acceptable values for
are
and
.
fontAttribute
fontAttribute
"size"
"face"
If
is
,
must be of the form
to specify a point size; a simple numeric
value
fontAttribute
"size"
value
"XXXpt"
value is not allowed.