User Guide
82 Chapter 3: Objects
Example
Assuming there are three scenes (Scene0, Scene1, and Scene2) in the current document, the
following example makes
Scene2 the current scene and then deletes it:
fl.getDocumentDOM().editScene(2);
var success = fl.getDocumentDOM().deleteScene();
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
The following example deletes the current selection in the document:
fl.getDocumentDOM().deleteSelection();
document.description
Availability
Flash MX 2004.
Usage
document.description
Description
Property; a string that is equivalent to the Description field in the Accessibility panel. The
description is read by the screen reader.
Example
The following example sets the description of the document:
fl.getDocumentDOM().description= "This is the main movie";
The following example gets the description of the document and displays it in the Output panel:
fl.trace(fl.getDocumentDOM().description);