How are you..? Hope doing good..
Your question is not detailed....You want to close your CustomComponent but what your custom component contain...whether it is component having TitleWindow as the root tag and are you pening it as a PopUp.
Could you please elaborate your problem...?
That Custom Componet is consisting of a Canvas with
two View Stacks conssisting of 8 LinkButtons
How are you trying to close your component..? What logic you are trying to implementing..?
When the Mouse is moved out of the Canvas Custom
Componet , i am calling customComponnet.visible=false ;
I am keeping this logic inside the CustomComponet .
Hey this is the function you are looking try this out....
private function titleWin_close(evt:CloseEvent):void
PopUpManager.removePopUp(evt.target as IFlexDisplayObject);
If you are using TitleWindow (tested and succeed..)
calll this in close event of your title window
otherwise (not tested...)
If u use Canvas drag and drop a button and write in its click event this