This is my code:
@
//load node file
var node = cc.BuilderReader.load(“the builder file”);
scene.removeAllChildren();
scene.addChild(node);
// node controller
var nodeController = function() {}
//
nodeController.prototype.onDidLoadFromCCB = function() {
this.spriteObject.setVisible(true);
}
@
It can work in the first time , but can not run second time. The error is
jsb_cocos2dx_auto.cpp: Line: 29599, Function: js_cocos2dx_CCSprite_setVisible
Cocos2d: Invalid Native Object
Please help me how to fix the issue.