basic event for animation ended or looped - largly untested