The replace element hides a previously shown object specified in the showId attribute and displays a new object specified in objectId. The new object can also be moved, rotated, or scaled, similar to the modifications described by the modify element.
<replace showId="showId" objectId="objectId" [moveX="xSift"] [moveY="yShift"]
[rotate="rotationAngle"] [rotateCenterX="rotationCenterX" rotateCenterY="rotationCenterY"]
[scaleX="xScale"] [scaleY="yScale"] [skewX="xSkew"] [skewY="ySkew"]
[maskId="showId"] [shiftAlpha="shiftForAlpha"]
[shiftRed="shiftForRed"] [shiftGreen="shiftForGreen"] [shiftBlue="shiftForBlue"]
[transform="transformScript"] [directTransform="useDirectTransformMatrix"]
/>
Name |
Description |
Value type |
Optional |
Default Value |
| showId |
Identifier of show tag which refers to object was previously shown on screen. |
no |
- |
|
objectId |
Identifier of object described in objects collection to be shown instead of object identified by showId. |
no |
- |
|
moveX |
Relative shift of the object in the X coordinate (can be negative as well). |
yes |
- |
|
moveY |
Relative shift of the object in the Y coordinate (can be negative as well). |
yes |
- |
|
rotate |
Rotation of the object in degrees. If rotateCenterX and rotateCenterY are not specified, the object will be rotated around its center. |
yes |
- |
|
rotateCenterX |
X coordinate of the object rotation center. |
yes |
- |
|
rotateCenterY |
Y coordinate of the object rotation center. |
yes |
- |
|
scaleX |
Scaling coefficient of the object in the X coordinate. |
yes |
- |
|
scaleY |
Scaling coefficient of the object in the Y coordinate. |
yes |
- |
|
skewX |
Defines object skew along X axis. |
yes |
- |
|
skewY |
Defines object skew along Y axis. |
yes |
- |
|
maskId |
Identifier (showId) of mask object show tag. |
yes |
- |
|
shiftAlpha |
Shift for original shape transparency. Value may be positive or negative from -255 to 255. |
yes |
- |
|
shiftRed |
Shift for Red part of original shape color. Value may be positive or negative from -255 to 255. |
yes |
- |
|
shiftGreen |
Shift for Green part of original shape color. Value may be positive or negative from -255 to 255. |
yes |
- |
|
shiftBlue |
Shift for Blue part of original shape color. Value may be positive or negative from -255 to 255. |
yes |
- |
|
transform |
This attribute allows to transform original shape defined in objects collection using script-style transformation notation. |
yes |
- |
|
directTransform |
If set to true, ActiveSWF will build and apply 2D matrix transformation to the shape. Look at Direct matrix transformations section for more details. |
yes |
false |
See show tag description for mor information about morphPhase, maskId, directTransform, shiftAlpha, shiftRed, shiftGreen and shiftBlue attributes.
frame element