lieut_data
05-15-2007, 04:12 PM
I've a number of check boxes for which I want to capture `selected` change events -- events dispatched when the selected property of the checkbox changes.
I was initially under the impression that I could register an event listener with one of their parent containers (in this case, an HBox); however, HBox does not dispatch the Event.CHANGE event, and thus does not participate in the bubbling. In fact, I checked several containers, including the Form container, only to find that the Event.CHANGE event is not dispatched.
Why can I not simply capture arbitrary events in a parent container (this goes to why Flex was designed this way...)
What container / method should I use to capture a bubbled event from a check box? (I'm hoping I don't have to assign a change property to each one...)
I was initially under the impression that I could register an event listener with one of their parent containers (in this case, an HBox); however, HBox does not dispatch the Event.CHANGE event, and thus does not participate in the bubbling. In fact, I checked several containers, including the Form container, only to find that the Event.CHANGE event is not dispatched.
Why can I not simply capture arbitrary events in a parent container (this goes to why Flex was designed this way...)
What container / method should I use to capture a bubbled event from a check box? (I'm hoping I don't have to assign a change property to each one...)