easing calculation fixed to match Flash Pro functions