as3 tween engine
key features:
new StorkTweenPackBuilder()
.append(
new StorkTweenPackBuilder()
.insert(StorkTweenBuilder.from(image, 1, {alpha:0}))
.insert(StorkTweenBuilder.fromTo(image, 1, {x:-100}, {x:100}))
)
.append(StorkTweenBuilder.to(image, 1, {alpha:0}))
.resolve();
If, for example, your application is resised. You can change properties of the tween on fly:
var scale:Number = stageWidth / _oldStageWidth;
storkTween.changeProperty("x", function (oldX:Number):Number {
return oldX * scale;
});
You can set you timescale for bot tween or tweenpack objects.
Thank's to fluet interface, the callback subscription becames very easy.
new StorkTweenPackBuilder()
.append(StorkTweenBuilder.from(image, 1, {alpha:0}).onComplete(trace, ["image appeared"]))
.append(StorkTweenBuilder.from(image, 1, {x:100, y:100}).onComplete(trace, ["image position tweened"]))
.onComplete(trace, ["all tweens completed"])
.resolve();
Note: you can refference "onComplete" and other callback api methods many times.
Using "currentProgress" property of IStorkTween interface, you can specify the current progrees of the tween manualy. It doesn't metter if you change progress of tween or of tween pack.
Stork tween engine works wraps standart starling tweens.