请教cocos studio 2.0.6如何制作帧动画,以及如何在cocos2dx 3.3Final中播放,我这么做在哪里不对?

我的做法是:

在lua中:
local node = cc.CSLoader:getInstance():createNodeWithFlatBuffersFile(“studio/res/xxx.csb”)
local animation = node:getChildByName(“animation”)
layerGame:addChild(node)
node:setPosition(500, 500)
animation:gotoFrameAndPlay(1)

出错:
LUA ERROR: attempt to call method ‘gotoFrameAndPlay’ (a nil value)

注:文件确认是成功读取的。只是那个animation可能它的类型不是ccs.ActionTimeline。
我看论坛上说studio2.0的动画是ccs.ActionTimeline类型的,不过不知道应该如何正确的姿势做?

我找到办法了。这样做:

local node = cc.CSLoader:getInstance():createNodeWithFlatBuffersFile(“studio/res/xxx.csb”)
local timeline = cc.CSLoader:getInstance():createTimeline(“studio/res/xxx.csb”)
layerGame:addChild(node)
node:setPosition(500, 500)
node:runAction(timeline)
timeline:gotoFrameAndPlay(0)

另外,lua_cocos2dx_csloader_manual.cpp 中的第42行应把tolua_isusertable改为tolua_isusertype

另外,3.3Final中的帧事件根本不会被回调。其本身的实现也很草草完成。而最后一帧事件更是没有导出。坑坑坑坑。。。:3: