49
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
Usage
dom.ApplyEffects(
effectList
)
Arguments
effectList
An EffectList object (see “
EffectList object
” on page 247). 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 244):
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
fontAttribute
Acceptable values for
fontAttribute
are
"size"
and
"face"
.
value
If
fontAttribute
is
"size"
,
value
must be of the form
"XXXpt"
to specify a point size; a simple numeric
value is not allowed.
Returns
Nothing.
Description
Applies the specified font markup attribute to the selected text.
dom.applyStyle()
Availability
Fireworks 3.