dispatch event complete when frame reach total frame and not playing anymore