-- NOTE: This handler object is auto-generated. Feel free to modify the contents of this file.
--
-- IMPORTANT: This script resource must be attached to a script component named WidgetHandler to work
--            with the checkbox widget's base script.
-- 

local thisActor = ...;
local actorName = scaleform.Actor.name(thisActor);

-- The handler object expected by the base widget script
-- If any of the handler methods are not defined, then the base widget will not attempt to invoke them.
local handler = {
    	
	-- Invoked when the checkbox is clicked
	-- Param checked : Boolean
	clicked = function(checked)

        -- The code below gives an example of how to dispatch a custom event from this event handler function.
        --[[
        local evt = { eventId = scaleform.EventTypes.Custom, 
                      name = actorName .. "_clicked", 
                      data = { isChecked = checked } }
        scaleform.Stage.dispatch_event(evt)
        --]]

	end
	
	-- Invoked when the checkbox state changes, uncomment to activate.
	-- Param newState : String
	--[[
	stateChanged = function(newState)
		print(actorName .. " state changed to " .. newState)
	end
	--]]
}

return handler;