but there’s less resource we can learn in cocos2d-x sample.
This should be what you’r looking for.
Thanks, Hank Liang,
I know there three articles.
But I mean where I can learn how to use js binding method?
ns = JS_NewObject(cx, NULL, NULL, NULL);
When I need to use JS_NewObject?
JS_SetProperty(cx, obj, "ts",&nsval);
What is JS_SetProperty mean?
and so on…
Although we can use binding-generator to generate JS binding code,
But sometime We need to modify code for our demand,
how can I learn?
simon send me an email euwynopzi.com, i’ll see how i can help. just wrote a bunch of js bindings.
Hope this can help you: http://www.ibm.com/developerworks/cn/linux/l-cn-spidermonkey/index.html