replace Element

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.

Syntax

<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"]
/>

Attributes

Name

Description

Value type

Optional

Default Value

showId

Identifier of show tag which refers to object was previously shown on screen.

id

no

-

objectId

Identifier of object described in objects collection to be shown instead of object identified by showId.

id

no

-

moveX

Relative shift of the object in the X coordinate (can be negative as well).

coordinate

yes

-

moveY

Relative shift of the object in the Y coordinate (can be negative as well).

coordinate

yes

-

rotate

Rotation of the object in degrees. If rotateCenterX and rotateCenterY are not specified, the object will be rotated around its center.

float

yes

-

rotateCenterX

X coordinate of the object rotation center.

coordinate

yes

-

rotateCenterY

Y coordinate of the object rotation center.

coordinate

yes

-

scaleX

Scaling coefficient of the object in the X coordinate.

float

yes

-

scaleY

Scaling coefficient of the object in the Y coordinate.

float

yes

-

skewX

Defines object skew along X axis.

float

yes

-

skewY

Defines object skew along Y axis.

float

yes

-

maskId

Identifier (showId) of mask object show tag.

id

yes

-

shiftAlpha

Shift for original shape transparency. Value may be positive or negative from -255 to 255.

integer

yes

-

shiftRed

Shift for Red part of original shape color. Value may be positive or negative from -255 to 255.

integer

yes

-

shiftGreen

Shift for Green part of original shape color. Value may be positive or negative from -255 to 255.

integer

yes

-

shiftBlue

Shift for Blue part of original shape color. Value may be positive or negative from -255 to 255.

integer

yes

-

transform

This attribute allows to transform original shape defined in objects collection using script-style transformation notation.

transform

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.

boolean

yes

false

Remarks

See show tag description for mor information about morphPhase, maskId, directTransform, shiftAlpha, shiftRed, shiftGreen and shiftBlue attributes.

Parent Elements

frame element

See Also

XML Schema Reference