hello,
I’ve been trying to learn how to get more control over the pennerEasing engine with in the fuseKit. With in the penner documentation there are some parameters that can be modified. How can setup the code so that I can control parameters t,b,c, and d?
Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
easeInOutElastic
static function easeInOutElastic(t: Number,
b: Number,
c: Number,
d: Number,
a: Number,
p: Number): Number
Here I have an example of some animation used with fuse:http://www.f56k.com/penner/PennerEasing.html
import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse,PennerEasing,FuseFMP);
var f:Fuse;
btn1.btext.text = "move 1";
btn2.btext.text = "move 2";
btn1.onRelease = function():Void {
f= new Fuse();
f.push({target:ball,x:90,y:105, seconds:1,ease:"easeOutElastic"});
f.start();
}
btn2.onRelease = function():Void {
f= new Fuse();
f.push({target:ball,x:391,y:105,seconds:1,ease:"easeOutElastic"});
f.start();
}
Thank you all in advance.