--响应事件函数
localfunctionselectedEvent(sender,eventType)
ifeventType== ccui.CheckBoxEventType.selectedthen
cclog("eventType == ccui.CheckBoxEventType.selected "elseifeventType== ccui.CheckBoxEventType.unselected cclog("ccui.CheckBoxEventType.unselected unselected "end
end
--创建复选框
localcheckBox= ccui.CheckBox:create()
checkBox:setTouchEnabled(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))--坐标