I'm using a Sparkskin for a Button to put a checkbox on the button.
Currently the button is receiving the mouse click and the checkbox is not selectable.
I want a user to be able to select/deselect the checkbox.
Do I need to set something or override a function in the Sparkskin for that to happen?
First, create your custom button extending spark Button. Set
mouseChildrenproperty totrue(aftersuper()call). OverridemouseEventHandlermethod, which handles all mouse events of the button. Check for thetargetof event and don't call forsuper.mouseEventHandleriftargetis your checkbox in case you don't want your button to be clicked when checking the checkbox.