Since version 2.1 cocos2d-iphone comes with ability to write code in JavaScript. This allows you to write your code once and then reuse the code with cocos2d-x or cococs2d-html5. All cocos2d nodes, CocosDension, CocosBuilder reader and Chipmunk are supported. But what about third parties? Do we need to rewrite other great libraries in JS to use them? No. And here jsbindings project comes for the rescue.
While official documentation is pretty good to get started, there are few pitfalls when using this tool in real project. So, lets explore the process of binding generation step by step and allow JS coders to use CCScrollView. At this tutorial we’ll explore automatic binding process and bind most of the CCScrollView methods to JS, next time we’ll focus on manual bindings and complete the rest.