// Copyright © 2007. Adobe Systems Incorporated. All Rights Reserved. package fl.motion { /** * The ITween interface defines the application programming interface (API) that interpolation * classes implement in order to work with the fl.motion classes. * The SimpleEase, CustomEase, BezierEase, and FunctionEase classes implement the ITween interface. * @playerversion Flash 9.0.28.0 * @langversion 3.0 * @keyword Ease, Copy Motion as ActionScript * @see ../../motionXSD.html Motion XML Elements */ public interface ITween { /** * 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".
0 and duration, inclusive.
* You can choose any unit (for example, frames, seconds, milliseconds),
* but your choice must match the duration unit.
*
* @param begin The value of the animation property at the start of the tween, when time is 0.
*
* @param change 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.
*
* @param duration 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.
*
* @return The interpolated value at the specified time.
* @playerversion Flash 9.0.28.0
* @langversion 3.0
* @keyword ITween, Copy Motion as ActionScript
* @see fl.motion.easing
*/
function getValue(time:Number, begin:Number, change:Number, duration:Number):Number
}
}