binding succeed but how to call it in the scene js

I succeed to bind a class and i can call it in the cocos2d-jsb.js using javascript.

  cc.log("I am pusing");
                                var ls = ls.GameCenterBridge.create();
                                ls.pushscore("30","scoreboard");
                                ls.showleaderboard();

But when i try this in the scene js, it says ls is undefined.

so, how to call self-made binding functions in scene js ?

never mind…I found I have to new it to before use.

Could you upload your bindings code?

OK. Glad to hear that you fix it.

thank you dumganhar…

here is what I did:

var myclass= new ls.GameCenterBridge();

myclass.showleaderboard();

@dumganhar do you know, why it’s landscape mode?

The leaderboard is landscape mode… how to make it to portrait? My game is with portrait mode, I don’t know why leaderboard always at side not on top…

ok, i’ve sorted it out… should set in portrait in target setting…