Package | com.dwuser.ss4.pseudoStyleClasses.subEffectReferenceClasses |
Class | public class Move |
Inheritance | Move TweenEffect Effect |
You can specify the initial position with the xFrom
and yFrom
values, the destination position with xTo
and yTo
, or the number of
pixels to move the component with xBy
and yBy
.
If you specify any two of the values (initial position, destination, or amount to move), the slideshow automatically calculates the third. If you specify all three, the slideshow ignores the xBy and yBy values. If you specify only the xTo and yTo values or the xBy and yBy values, the slideshow automatically sets xFrom and yFrom to be the object's current position.
If you specify a Move effect for a moveEffect trigger, and if you do not set the six From, To, and By properties, the slideshow automatically sets them to create a smooth transition between the object's old position and its new position.
You typically apply this effect to a target in a container that uses absolute positioning, such as Canvas, or one with "layout=absolute", such as a Panel. If you apply it to a target
in a container that performs automatic layout, such as a VBox or Grid container, the move occurs, but the next time the container updates its layout, it moves the target back to its
original position. You can set the container's autoLayout
property to false to disable the move back, but that disables layout for all controls in the container.
This class is part of the EffectLibrary sub-effect documentation. It is a dummy class used only to document the supported parameters for a given sub-effect node.
See also
Property | Defined by | ||
---|---|---|---|
duration : Number
Duration of the effect in milliseconds.
| Effect | ||
easingFunction : Function
The easing function for the animation.
| TweenEffect | ||
repeatCount : Number
Number of times to repeat the effect.
| Effect | ||
repeatDelay : Number
Amount of time, in milliseconds, to wait before repeating the effect.
| Effect | ||
startDelay : Number
Amount of time, in milliseconds, to wait before starting the effect.
| Effect | ||
xBy : Number
Number of pixels to move the components along the x axis.
| Move | ||
xFrom : Number
Initial position's x coordinate.
| Move | ||
xTo : Number
Destination position's x coordinate.
| Move | ||
yBy : Number
Number of pixels to move the components along the y axis.
| Move | ||
yFrom : Number
Initial position's y coordinate.
| Move | ||
yTo : Number
Destination position's y coordinate.
| Move |
Method | Defined by | ||
---|---|---|---|
Move()
| Move |
xBy | property |
public var xBy:Number
Number of pixels to move the components along the x axis. Values can be negative.
xFrom | property |
public var xFrom:Number
Initial position's x coordinate.
xTo | property |
public var xTo:Number
Destination position's x coordinate.
yBy | property |
public var yBy:Number
Number of pixels to move the components along the y axis. Values can be negative.
yFrom | property |
public var yFrom:Number
Initial position's y coordinate.
yTo | property |
public var yTo:Number
Destination position's y coordinate.
Move | () | constructor |
public function Move()