lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TargetProperty.ax (swf ) [ flash ] flex
A TweenTarget used to tween numeric properties of an object. @use Generally used internally by KSTween but can be explicitly created thusly... <code> var target:Sprite = new Sprite(); var property:String = "x"; var startValue:Number = 0; var endValue:Number = 250; var tween@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TargetProperty:ITweenTarget = new @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TargetProperty(target, property, startValue, endValue); var duration:int = 2000; var delay:int = 500; var tweeen:KSTween = KSTween.newWithTweenTarget(tween@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TargetProperty, duration, delay); </code> @since 1.5
author: Mims H. Wright
The object containing the property you want to tween.
The string name of the property of the target object that you want to tween. Note: the property must be a numeric value.
Sets the target object and property name that will be tweened.
parameter: target an object that contains the numeric property to tween.
parameter: property the name of the numeric property to tween.
The current value of the property. Using the setter directly sets the value. @throws Error if the target or property aren't set.
The value to start from when tweening.
The value to end on when tweening.
The total amount of change between the start and end values. (used internally)
Indicates whether tweened values should snap to whole value numbers or use decimals. If set to true, the results of the easing functions on the target property will be rounded to the nearest integer.
see: org.as3lib.kitchensync.ActionDefaults
Constructor.
parameter: target the object whose property you want to tween
parameter: property the name of the numeric property to tween
parameter: startValue the value to start from when tweening
parameter: endValue the value to end on when tweening
The main function that the Tween uses to update the TweenTarget. Sets the percentage complete.
parameter: percentComplete a number between 0 and 1 (but sometimes more or less) that represents the percentage of the tween that has been completed. This should update
returns: Number the new current value of the tween.
Returns the tweenTarget to its pre-tweened state
Create a copy of the tweenTarget object */ public function clone():ITweenTarget { var clone:@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TargetProperty = new @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TargetProperty(_target, _property, _startValue, _endValue); clone.snapToInteger = _snapToInteger; return clone; } public function toString():String { return target + "." + property + " from " + startValue + " to " + endValue; } } }
[]readme course(s) prefaceI 1 2II 3 4III 5 6 7IV 8 9 10V 11 12 afterthought(s)appendix reference(s) example(s)resource(s) _![]()
(C) Æliens 19/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.