Jump to content
Search Community

dustymax

Members
  • Posts

    1
  • Joined

  • Last visited

dustymax's Achievements

0

Reputation

  1. here is how the source will look if you want the object to bounce just once: package com.greensock.easing { public class Bounce { public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number { if ((t/=d) < (1/2.75)) { return c*(7.5625*t*t) + b; } else if (t < (2/2.75)) { return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; } else return c; } public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number { return c - easeOut(d-t, 0, c, d) + b; } public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number { if (t < d*0.5) return easeIn (t*2, 0, c, d) * .5 + b; else return easeOut (t*2-d, 0, c, d) * .5 + c*.5 + b; } } } the only problem is that such ease will run some time at the end of the tween without modifying the props.
×
×
  • Create New...