--响应事件函数
local@H_301_21@functionselectedEvent(sender,eventType)
@H_301_21@ifeventType== ccui.CheckBoxEventType.selected@H_301_21@then
cclog("eventType == ccui.CheckBoxEventType.selected "elseifeventType== ccui.CheckBoxEventType.unselected cclog("ccui.CheckBoxEventType.unselected unselected "end
@H_301_21@end
--创建复选框
@H_301_21@localcheckBox= ccui.CheckBox:create()
checkBox:setTouchEnabled(@H_301_21@true)
checkBox:loadTextures("check_Box_normal.png",
"check_Box_normal_press.png""check_Box_active.png""check_Box_normal_disable.png""check_Box_active_disable.png")
checkBox:setPosition(cc.p(120,300))--坐标