We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
ActionManagerEx::playActionByName(const char* jsonName,const char* actionName, CallFunc* func) crash when execute callback
ActionManagerEx::playActionByName(const char* jsonName,const char* actionName, CallFunc* func) crash when execute callback
Bug #3679 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8308
Status: | Closed | |
---|---|---|
Start date: | 2014-01-13 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
In the callback there is only one line ‘log(“animation finished”);’, but when the animation finished and start execute the callback, app crash!
here is the related code:
void TestScene::onEnterTransitionDidFinish(){
Layer::onEnterTransitionDidFinish();
CallFunc * func = CallFunc::create(
bind(&TestScene::onAnimOpeningStop, this));
ActionManagerEx::getInstance()->playActionByName(“fileName”,“animName”,func);
}
void TestScene::onAnimOpeningStop(){
log(“animation finished”);
}