I would like to enable a click event only on the title bar of a spark TitleWindow. Any ideas on which property I should add the addResponder?
Thanx for your help
I would like to enable a click event only on the title bar of a spark TitleWindow. Any ideas on which property I should add the addResponder?
Thanx for your help
Can you inherit from TitleWindow and add a custom event to handle clicks on the title area?
Extend the TitleWindow
class, listen to its creationComplete
event, and attach a click event listener to the titleBar from the creation complete handler. Now dispatch a custom event, say titleBarClicked
from that click event handler.
Had the titleBar
property been public instead of protected, you needn't have to go through extending TitleWindow
for accomplishing this.