Package | fl.motion |
Interface | public interface ITween |
Implementors | BezierEase, CustomEase, FunctionEase, SimpleEase |
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
Related API Elements
Property | Defined By | ||
---|---|---|---|
target : String
The name of the animation property to target. | ITween |
Method | Defined By | ||
---|---|---|---|
Calculates an interpolated value for a numerical property of animation. | ITween |
target | property |
target:String
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
The name of the animation property to target.
The default value is ""
(empty quotes), which targets all properties.
The other acceptable values are "x"
, "y"
, "position"
(which targets both x and y),
"scaleX"
, "scaleY"
, "scale"
(which targets both scaleX and scaleY),
"skewX"
, "skewY"
, "rotation"
(which targets both scaleX and scaleY), "color"
, and "filters"
.
The default value is "".
Implementation
public function get target():String
public function set target(value:String):void
getValue | () | method |
public function getValue(time:Number, begin:Number, change:Number, duration:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
Calculates an interpolated value for a numerical property of animation. The function signature matches that of the easing functions in the fl.motion.easing package. Various ITween classes will produce different styles of interpolation for the same inputs.
Parameters
time:Number — The time value, which must be between 0 and duration , inclusive.
You can choose any unit (for example, frames, seconds, milliseconds),
but your choice must match the duration unit.
| |
begin:Number — The value of the animation property at the start of the tween, when time is 0 .
| |
change:Number — The change in the value of the animation property over the course of the tween.
This value can be positive or negative. For example, if an object rotates from 90 to 60 degrees, the change is -30 .
| |
duration:Number — The length of time for the tween. This value must be greater than zero.
You can choose any unit (for example, frames, seconds, milliseconds),
but your choice must match the time unit.
|
Number — The interpolated value at the specified time.
|
Related API Elements
Wed Nov 21 2018, 06:34 AM -08:00