开发者

As3 fl.controls.List adding button to list item

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜