Top level TitleWindow tag
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" showCloseButton="true" close="closeWindow(event)">
<mx:Script>
import mx.managers.PopUpManager;
import mx.events.CloseEvent;
private function closeWindow(event:CloseEvent):void {
PopUpManager.removePopUp(this);
}
</mx:Script>
<mx:TextArea height="200" width="200" text="Lorem ipsum dolor sit amet, tortor, tincidunt in, blandit a, luctus quis, est." />
</mx:TitleWindow>
Related examples in the same category