Have the window dispatch the close event, you can do this from
anywhere, you just need a reference point to the title window you want
to dispatch the event.

ie. in the code inside the TitleWindow instance

var e:Event = new Event(Event.CLOSE);
//parent is a reference to the parent title window instance
parent.dispatchEvent(e); 

You can also 'bubble' the event up from any child within the title
window instance and it will have the same effect. 

var e:Event = new Event(Event.CLOSE, true);
dispatchEvent(e); 

Only listeners to that specific title window instance will hear the
close event, not listeners to other windows.

Derrick
------------------
Derrick Grigg
www.dgrigg.com
[EMAIL PROTECTED]



Reply via email to