Answered
custom easing code in class file?
here is the code i get from the custom easing tool:
customEasing = {};
customEasing.pts = [0,0.0257,0.0609,0.1057,0.1603,0.2247,0.2991,0.3837, ect.. ect...
customEasing.ease = function(t,b,c,d,pl){
return b+c*pl[Math.round(t/d * pl.length)];
}
however i need this code to go into a class defenition which extends movie clip. but there seems to be no easy way to do this as the way the above code is set out is not allowd in a class defenition. so my question is how can i rearange this code to work in a class defenition so that other methods of that class can use it in tweens?
customEasing = {};
customEasing.pts = [0,0.0257,0.0609,0.1057,0.1603,0.2247,0.2991,0.3837, ect.. ect...
customEasing.ease = function(t,b,c,d,pl){
return b+c*pl[Math.round(t/d * pl.length)];
}
however i need this code to go into a class defenition which extends movie clip. but there seems to be no easy way to do this as the way the above code is set out is not allowd in a class defenition. so my question is how can i rearange this code to work in a class defenition so that other methods of that class can use it in tweens?
