Class Index

View All Classes

Class vs.fx.ScaleAnimation

Extends vs.fx.Animation.

Scale your object over the X and Y axes

If the second parameter is not provided, it is takes a value equal to the first.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
sx
The scale value along the X axis
 
sy
The scale value along the Y axis
Fields borrowed from class vs.fx.Animation:
delay, duration, durations, iterationCount, origin, properties, timing, timings, values
Fields borrowed from class vs.core.Task:
delegate, state
Methods borrowed from class vs.fx.Animation:
addKeyFrame, clone, process, setAnimations, start
Methods borrowed from class vs.core.Task:
pause, stop
Class Detail
vs.fx.ScaleAnimation(sx, sy)

Author: David Thevenin.
 // declare the animation
 var scale = new vs.fx.ScaleAnimation (0.5, 1);
 scale.process (comp);
Parameters:
{number} sx
The scale value along the X axis
{number} sy
The scale value along the Y axis
Field Detail
sx
The scale value along the X axis

sy
The scale value along the Y axis