Hi,
I've got a custom component based on a TitleWindow. I want to put an event listener in my main app that listens for the Titlewindow's modal button's click
Custom Component:
<mx:TitleWindow
showCloseButton="true"
close="closeHandler(event)">
blah blah...
<mx:TitleWindow>
In the main app:
I've got a variable called popWindow, which is the above component. How do I reference the TitleWindow's modal button?
I want to do something like this:
(Pseudo-code) popWindow.[modal button reference].addEventListener(MouseEvent.CLICK, myFunction);
Thank you.
-Laxmidi