开发者

Flex 3 Panel titleIcon click event

I would like to add an title Icon image to a Panel, but cant find the click event on that i开发者_高级运维con,


The titleIconObject of the Panel class is declared as an mx_internal variable, so if you want to do anything with it you will probably have to extend Panel and override it and some of the methods that reference it.

EDITED TO INCLUDE FURTHER INFORMATION FROM MY COMMENT:

@seismael: Actually, upon further review, a better way would be to override commitProperties and handle it there. Open up the Panel class in the SDK and look for the section beginning if (_titleIconChanged) (in the current SDK I'm using it's line 1168). Just do super.commitProperties() and then adjust that conditional block to add your event listener for _titleIcon, etc

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜