director.replaceScene( cc.TransitionFlipX.create(1, self.getMainMenuScene()) ); })}) is not a function

1、like title ,this is demo of cocos2dx_js project,when I click the “back” ,It show this bug。
2、how to bind myself class?

Issue #1645 was created. Thank you.

But I build a js project also have this bug, my cocos2dx was updated on https://github.com/cocos2d/cocos2d-x.git at 2012-12-26.

We will check it, thanks.
steven chen wrote:

But I build a js project also have this bug, my cocos2dx was updated on https://github.com/cocos2d/cocos2d-x.git at 2012-12-26.

Thanks for the trouble,I have some question tell you。
In the project,I think it miss the :#include “js_bindings_ccbreader.h” and sc->addRegisterCallback(register_CCBuilderReader);when we used cocosbuilder 3.0.
also should update the jsb_constants_cocosbuilder.js,because it contents is different from jsb_constants_cocosbuilder.js’s contents witch in TestJavascript project.
eg.cc.Reader = {};cc.BuilderReader = {};,And main.js in cocosbuilder project used cc.BuilderReader = {};.

Ok, thanks for reminding this.

steven chen wrote:

Thanks for the trouble,I have some question tell you。
In the project,I think it miss the :#include “js_bindings_ccbreader.h” and sc->addRegisterCallback(register_CCBuilderReader);when we used cocosbuilder 3.0.
also should update the jsb_constants_cocosbuilder.js,because it contents is different from jsb_constants_cocosbuilder.js’s contents witch in TestJavascript project.
eg.cc.Reader = {};cc.BuilderReader = {};,And main.js in cocosbuilder project used cc.BuilderReader = {};.

It’s fixed at https://github.com/cocos2d/cocos2d-x/pull/1825. Thanks. :slight_smile:
Could you pull our latest codes and try again?

James Chen wrote:

It’s fixed at https://github.com/cocos2d/cocos2d-x/pull/1825. Thanks. :slight_smile:
Could you pull our latest codes and try again?

It is my pleasure .

James Chen wrote:

It’s fixed at https://github.com/cocos2d/cocos2d-x/pull/1825. Thanks. :slight_smile:
Could you pull our latest codes and try again?

I am not familiar with github client. I use git command line.
You could try it by git pull https://github.com/cocos2d/cocos2d-x.git gles20 in the terminal. Thanks.

steven chen wrote:

James Chen wrote:
> It’s fixed at https://github.com/cocos2d/cocos2d-x/pull/1825. Thanks. :slight_smile:
> Could you pull our latest codes and try again?

James Chen wrote:

It’s fixed at https://github.com/cocos2d/cocos2d-x/pull/1825. Thanks. :slight_smile:
Could you pull our latest codes and try again?
I download the latest codes And try it. it’s work well.