I do NOT see your code on how the titleWindow get created. But, try this..
var dialog:MyTitleWindow = MyTitleWindow(PopUpManager.createPopUp(DisplayObject(mx.core.Application.application),
dialog.move(mx.core.Application.application.width/2 - dialog.width/2,
mx.core.Application.application.height/2 - dialog.height/2 - 200);
If you are displaying the TitleWindow as a popup, that is probably the problem, because popups are not in the same display list as the application below systemManager. You may need to add the event listener to the systemManager.
See my Flex 3 cookbook post where I use custom events and add event listeners to the systemManager:
If this post answered your question or helped, please mark it as such.
From what I can tell, you aren't declaring a type on the event you are dispatching. You have this:
var myEvent:CustomEvent = new CustomEvent(); dispatchEvent(myEvent);
I think it should be:
var myEvent:CustomEvent = new CustomEvent(CustomEvent.WINDOW_CLOSED); dispatchEvent(myEvent);
Thanks! That's just what I needed.