无法播放ui动画是怎么回事

hjf7788521
Wed, 18 Jun 2014 02:33:22 +0000

我在UI编辑器中编辑了一个动画，可是动画节点始终停在那里不动，lua代码如下

local _widget = ccs.GUIReader:getInstance():widgetFromJsonFile(“game/game1/game1.json”)
layerFarm:addChild(_widget)

local function myCallback()
print(“aaaaaaaaaaaaa”)
end
callFuncObj = cc.CallFunc:create(myCallback)
callFuncObj:retain()
ccs.ActionManagerEx:getInstance():playActionByName(“game/game1/game1.json”,“AnimationManager”, callFuncObj)

阅读整个主题