animateFrame has lastFrame parameter