A question about easing curve

Hello,

I’m using the easing library posted by @scarnie :
http://developer.anscamobile.com/code/more-easing

for example the easeInOut curve is connected by two curves easeIn and easeOut, its function is like this:

\_easeInOut=function(ratio)  
 if (ratio \< 0.5) then   
 return 0.5 \* \_easeIn(ratio\*2.0)  
 else  
 return 0.5 \* \_easeOut((ratio-0.5)\*2.0) + 0.5  
 end  
end  

My question is if i want to repeat easeInOut curve smoothly for 10 times, or if i want to repeat easeOutInElastic + easeOutIn + easeOutBounce+etc … how to do that? I have tried many times but cant get the right result, so i hope could get some help from here,thanks!
[import]uid: 74676 topic_id: 13183 reply_id: 313183[/import]

Try doing the transition 10 times. One way might be to use the params.onComplete option to decrement a counter and repeat the transition until the counter is down to 0.
Or, maybe you could use timer.performWithDelay with the number of loops parameter. [import]uid: 6787 topic_id: 13183 reply_id: 48493[/import]

Hi, it works thank you!
i was trying to modify and create a new easing function by using the easeInOutBack, also i didn’t notice there have 2 bugs fixed below [import]uid: 74676 topic_id: 13183 reply_id: 48526[/import]