Stop animation frame working

got stop animation frame to work on timeline and to stop when mouse out
of timeline.