Please help. I want to add a click event on checkbox that i created dynamically so that i know what checkbox I click.
Heres my code on action script:
var myCheckbox:CheckBox = new CheckBox(); vbox.addChild(myCheckbox);
How to add click event on checkbox?
As long as it inherits EventDispatcher, you can attach a listener and it’ll send events as normal.