Search code examples
flashactionscript-3listbuttoncellrenderer

As3 fl.controls.List adding button to list item


I want to add a SimpleButton to a list item in a list component. I am getting the CellRenderer for the list item I want and using the addChild method to add the simple button. The button appears in the right spot on the list item but it doesn't function like a button. It's like the contents of the buttons first frame is added to the CellRenderer and nothing else.

Anyone have an idea what might be going on?


Solution

  • Setting the mouseChildren property of the fl.controls.listClasses.CellRenderer class to true fixes this problem.