| Package | org.as3lib.kitchensync.action |
| Class | public class KSSimpleTween |
| Inheritance | KSSimpleTween flash.events.EventDispatcher |
| Implements | IAction, ITween |
See also
| Property | Defined by | ||
|---|---|---|---|
| delay : int delay before the animation begins in milliseconds.
| KSSimpleTween | ||
| duration : int duration of tween, not including delay, in milliseconds.
| KSSimpleTween | ||
| easingFunction : Function the easing function to use with the tween
| KSSimpleTween | ||
| endValue : Number the ending value of the tween.
| KSSimpleTween | ||
| isPaused : Boolean [read-only] True when the action is paused
| KSSimpleTween | ||
| isRunning : Boolean [read-only] True when the action is running (or paused)
| KSSimpleTween | ||
| property : String property of the target object to affect as a string.
| KSSimpleTween | ||
| startValue : Number the starting value of the tween.
| KSSimpleTween | ||
| target : Object target object whose properties will be affected.
| KSSimpleTween | ||
| Property | Defined by | ||
|---|---|---|---|
| _delay : int = 0 | KSSimpleTween | ||
| _delta : Number a cached value for the difference between the start and end.
| KSSimpleTween | ||
| _duration : int = 0 | KSSimpleTween | ||
| _paused : Boolean = false Set to true internally when the puase() mehtod is called (false when unpaused)
| KSSimpleTween | ||
| _pauseTime : int The time at which the tween was last paused.
| KSSimpleTween | ||
| _running : Boolean = false Set to true internally if when the start() method is called (false when stopped).
| KSSimpleTween | ||
| _startTime : int The time at which the tween was started.
| KSSimpleTween | ||
| Method | Defined by | ||
|---|---|---|---|
|
KSSimpleTween(target:Object, property:String, startValue:Number, endValue:Number, duration:int, delay:int, easingFunction:Function = null)
Constuctor.
| KSSimpleTween | ||
| KSSimpleTween | |||
|
kill():void
| KSSimpleTween | ||
|
pause():void
| KSSimpleTween | ||
|
Starts the tween.
| KSSimpleTween | ||
|
stop():void
Stops the tween.
| KSSimpleTween | ||
|
toString():String
| KSSimpleTween | ||
|
unpause():void
Resumes the action at the point where it was paused.
| KSSimpleTween | ||
|
Called when a pulse is sent from the Synchronizer
| KSSimpleTween | ||
| Method | Defined by | ||
|---|---|---|---|
|
complete():void
Called internally when the tween is completed.
| KSSimpleTween | ||
| _delay | property |
protected var _delay:int = 0
| delay | property |
delay:int [read-write]delay before the animation begins in milliseconds.
Implementation public function get delay():int
public function set delay(value:int):void
| _delta | property |
protected var _delta:Numbera cached value for the difference between the start and end.
| _duration | property |
protected var _duration:int = 0
| duration | property |
duration:int [read-write]duration of tween, not including delay, in milliseconds.
Implementation public function get duration():int
public function set duration(value:int):void
| easingFunction | property |
public var easingFunction:Functionthe easing function to use with the tween
| endValue | property |
public var endValue:Numberthe ending value of the tween.
| isPaused | property |
isPaused:Boolean [read-only]True when the action is paused
Implementation public function get isPaused():Boolean
| isRunning | property |
isRunning:Boolean [read-only]True when the action is running (or paused)
Implementation public function get isRunning():Boolean
| _paused | property |
protected var _paused:Boolean = falseSet to true internally when the puase() mehtod is called (false when unpaused)
| _pauseTime | property |
protected var _pauseTime:intThe time at which the tween was last paused.
| property | property |
public var property:Stringproperty of the target object to affect as a string.
| _running | property |
protected var _running:Boolean = falseSet to true internally if when the start() method is called (false when stopped).
| _startTime | property |
protected var _startTime:intThe time at which the tween was started.
| startValue | property |
public var startValue:Numberthe starting value of the tween.
| target | property |
public var target:Objecttarget object whose properties will be affected.
| KSSimpleTween | () | constructor |
public function KSSimpleTween(target:Object, property:String, startValue:Number, endValue:Number, duration:int, delay:int, easingFunction:Function = null)Constuctor.
Parameterstarget:Object — - the object whose property will be changed.
|
|
property:String — - the name of the property to change. The property must be a Number, int or uint such as a Sprite object's "alpha"
|
|
startValue:Number — - the value to tween the property to. After the tween is done, this will be the value of the property.
|
|
endValue:Number — - the starting value of the tween.
|
|
duration:int — - the time in milliseconds that this tween will take to execute.
|
|
delay:int — - the time to wait in milliseconds before starting the tween.
|
|
easingFunction:Function (default = null) — - the function to use to interpolate the values between fromValue and toValue.
|
| clone | () | method |
| complete | () | method |
protected function complete():voidCalled internally when the tween is completed.
| kill | () | method |
public function kill():void
| pause | () | method |
public function pause():void
| start | () | method |
public function start():IActionStarts the tween.
ReturnsIAction —
IAction - returns self (for convenience)
|
| stop | () | method |
public function stop():voidStops the tween. All progress will be lost and the tween will restart from the startValue if start() is called again.
| toString | () | method |
public override function toString():String
Returns
String |
| unpause | () | method |
public function unpause():voidResumes the action at the point where it was paused.
| update | () | method |
public function update(currentTimestamp:Timestamp):voidCalled when a pulse is sent from the Synchronizer
ParameterscurrentTimestamp:Timestamp |