document.deleteSelection()

#### Availability

Flash MX 2004.

#### Usage

document.deleteSelection()

#### Parameters

None.

#### Returns

Nothing.

#### Description

Method; deletes the current selection on the Stage. Displays an error message if there is no selection.

#### Example

javascript
The following example deletes the current selection in the document:
fl.getDocumentDOM().deleteSelection();