Animating variables with easing in my own function

[FONT=Arial Narrow]I have a function like this img.setTransform(0,0,w,0,w,h,0,h);

but want the variables be animated with easing…how I can do this? Not some mvc properties but variables in my own function.
[/FONT]