User Guide
168 Fireworks JavaScript API
Description
Converts path to marquee selection.
dom.convertToAnimSymbol()
Availability
Fireworks 4.
Usage
dom.convetToAnimSymbol(name, numFrames, offsetDistPt, rotationAmount,
scaleAmount, startOpacity, endOpacity)
Arguments
name A string that specifies a name for the new animation symbol.
numFrames An integer that specifies the number of frames through which the
symbol animates.
offsetDistPt A point that specifies the distance the animation will move in pixels (see
“Point data type” on page 12). For example, passing ({
x:100, y:25}) animates the symbol to
the right 100 pixels and 25 pixels down.
rotationAmount A floating-point value that specifies the degrees of rotation to be applied
to the animation symbol. For example, passing a value of
720 specifies an animation that does
two complete clockwise rotations. To rotate the animation counter-clockwise, pass a negative
number.
scaleAmount A positive floating-point value that specifies the amount of scaling to be
applied to the animation symbol. For example, passing a value of
50 scales the symbol to 50%
of its current size, and passing
200 scales it to twice its current size. To specify no scaling, pass
100.
startOpacity and endOpacity Float values between 0 and 100 that specify the starting
and ending opacity for the animation symbol.
Returns
Nothing.
Description
Converts the selected item(s) to a new animation symbol.
See also
dom.convertAnimSymbolToGraphicSymbol(), dom.convertToSymbol(),
dom.setAnimInstanceNumFrames()