cocos studio 里面的按钮 和ccui里面的button不一样啊,cocosstudio里面的按钮
setPressedActionEnabled这些方法都没有啊
你的按钮是怎么获取的,有做类型转换吗?
用getchildByName获取的,编辑期里面的都要做类型转换吗
local button3 = rootNode:getChildByName("Button_3")
tolua.cast(button3,"ccui.Button")
button3.setPressedActionEnabled( true );