CocoStudio animation callback

Hi guys!
I’m currently using CocosStudio ir order to build sprite animation in my game
I wonder if there is a way to call functions after a animation is done?

I have read the code of ActionTimeline.js but I can’t find a way to do it.

Best regards!

– Richard

don’t know about js but here is in c++ it’s anonymous function implantation, don’t know how to assign my own function from the class

auto action = CSLoader::createTimeline(“animation.csb”);
action->gotoFrameAndPlay(0, false);

action->setLastFrameCallFunc(
{
//do something
});
nodeAction->runAction(action);

It’s correct,but there is a bug related to setLastFrameCallFunc(),refer https://github.com/cocos2d/cocos2d-x/issues/13844.
Need to checkout the lastest cocos2dx framework on github and then use cocos command to rebuild libs : cocos gen-libs -p android