Flash MX 2004.
document.deleteSelection()
None.
Nothing.
Method; deletes the current selection on the Stage. Displays an error message if there is no selection.
The following example deletes the current selection in the document:
fl.getDocumentDOM().deleteSelection();