开发者

As3 fl.controls.List adding button to list item

开发者 https://www.devze.com 2023-02-28 09:46 出处:网络
I want to add a SimpleButton to a li开发者_运维问答st 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 butto

I want to add a SimpleButton to a li开发者_运维问答st 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号