Main App: <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp();"> @ <mx:Script> <![CDATA[ import mx.managers.PopUpManager; import mx.containers.TitleWindow; private var popUp:PopUp = null; private function initApp():void { popUp = new PopUp(); popUp.width = 100; popUp.height = 100; popUp.title = "PopUp"; popUp.addEventListener(Event.COMPLETE, removePopUp); PopUpManager.addPopUp(popUp,this); } private function removePopUp(event:Event):void { if(popUp !=null) { PopUpManager.removePopUp(popUp); } } ]]> </mx:Script> </mx:Application> And the popUp, that dispatch the Complete Event, What I have done here is faking the Complete event by using a button, hope you figure it out :) PopUp.mxml put it in the same dir as your running app.. <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"> <mx:Button label="event complete" click="dispatchEvent(new Event(Event.COMPLETE));" /> </mx:TitleWindow> --- In flexcoders@yahoogroups.com, "stinasius" <stinas...@...> wrote: > > do you mind sharing an example? >