document summary

#### Availability

Flash MX 2004.

#### Description

The Document object represents the Stage. That is, only FLA files are considered documents. To return the Document object for the current document, use fl.getDocumentDOM() (../flash_object_(fl)/fl31.md)

#### Method summary

You can use the following methods with the Document object:

<table><thead><tr class="header"><th><strong>Method</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr class="odd"><td><a href="../Document_object/documen1.md">document.addDataToDocument()</a></td><td>Stores specified data with a document.</td></tr><tr class="even"><td><a href="../Document_object/documen2.md">document.addDataToSelection()</a></td><td>Stores specified data with the selected objects.</td></tr><tr class="odd"><td><a href="../Document_object/documen3.md">document.addFilter()</a></td><td>Applies a filter to the selected objects.</td></tr><tr class="even"><td><a href="../Document_object/documen4.md">document.addItem()</a></td><td>Adds an item from any open document or library to the specified Document object.</td></tr><tr class="odd"><td><a href="../Document_object/documen5.md">document.addNewLine()</a></td><td>Adds a new path between two points.</td></tr><tr class="even"><td><a href="../Document_object/documen6.md">document.addNewOval()</a></td><td>Adds a new Oval object in the specified bounding rectangle.</td></tr><tr class="odd"><td><a href="../Document_object/documen7.md">document.addNewPrimitiveOval()</a></td><td>Adds a new oval primitive fitting into the specified bounds.</td></tr><tr class="even"><td><a href="../Document_object/documen8.md">document.addNewPrimitiveRectangle()</a></td><td>Adds a new rectangle primitive fitting into the specified bounds.</td></tr><tr class="odd"><td><a href="../Document_object/documen9.md">document.addNewPublishProfile()</a></td><td>Adds a new publish profile and makes it the current one.</td></tr><tr class="even"><td><a href="../Document_object/docume10.md">document.addNewRectangle()</a></td><td>Adds a new rectangle or rounded rectangle, fitting it into the specified bounds.</td></tr><tr class="odd"><td><a href="../Document_object/docume11.md">document.addNewScene()</a></td><td>Adds a new scene (<a href="../Timeline_object/timeline_summary.md">Timeline object</a>) as the next scene after the currently selected scene and makes the new scene the currently selected scene.</td></tr><tr class="even"><td><a href="../Document_object/docume12.md">document.addNewText()</a></td><td>Inserts a new empty text field.</td></tr><tr class="even"><td><a href="../Document_object/docu6058.md">document.addTaggedSwatch()</a></td><td>To add new tagged swatch.</td></tr><tr class="odd"><td><a href="../Document_object/docu6059.md">document.addTaggedSwatchWithColor()</a></td><td>To add new tagged swatch with the given color string.</td></tr><tr class="odd"><td><a href="../Document_object/docume13.md">document.align()</a></td><td>Aligns the selection.</td></tr><tr class="even"><td><a href="../Document_object/docume14.md">document.allowScreens() - dropped</a></td><td>Dropped in Adobe Animate.</td></tr><tr class="odd"><td><a href="../Document_object/docume15.md">document.arrange()</a></td><td>Arranges the selection on the Stage.</td></tr><tr class="even"><td><a href="../Document_object/docume24.md">document.breakApart()</a></td><td>Performs a break-apart operation on the current selection.</td></tr><tr class="odd"><td><a href="../Document_object/docume25.md">document.canEditSymbol()</a></td><td>Indicates whether the Edit Symbols menu and functionality are enabled.</td></tr><tr class="even"><td><a href="../Document_object/docume26.md">document.canRevert()</a></td><td><p>Determines whether you can use the <a href="../Document_object/docum340.md">document.revert()</aor</p><p><a href="../flash_object_(fl)/fl61.md">fl.revertDocument()</amethod successfully.</p></td></tr></tbody></table>

<table><thead><tr class="header"><th><strong>Method</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr class="odd"><td><a href="../Document_object/docume27.md">document.canTestMovie()</a></td><td><p>Determines whether you can use the</p><p><a href="../Document_object/docu5948.md">document.testMovie()</amethod successfully.</p></td></tr><tr class="even"><td><a href="../Document_object/docume28.md">document.canTestScene()</a></td><td><p>Determines whether you can use the</p><p><a href="../Document_object/docu5979.md">document.testScene()</amethod successfully.</p></td></tr><tr class="odd"><td><a href="../Document_object/docume29.md">document.changeFilterOrder()</a></td><td>Changes the index of the filter in the Filters list.</td></tr><tr class="even"><td><a href="../Document_object/docume30.md">document.clipCopy()</a></td><td>Copies the current selection from the document to the Clipboard.</td></tr><tr class="odd"><td><a href="../Document_object/docume31.md">document.clipCut()</a></td><td>Cuts the current selection from the document and writes it to the Clipboard.</td></tr><tr class="even"><td><a href="../Document_object/docume32.md">document.clipPaste()</a></td><td>Pastes the contents of the Clipboard into the document.</td></tr><tr class="odd"><td><a href="../Document_object/docume33.md">document.close()</a></td><td>Closes the specified document.</td></tr><tr class="even"><td><a href="../Document_object/docume34.md">document.convertLinesToFills()</a></td><td>Converts lines to fills on the selected objects.</td></tr><tr class="odd"><td><a href="../Document_object/docume35.md">document.convertSelectionToBitmap()</a></td><td>Converts selected objects in the current frame to a bitmap and inserts the bitmap into the library.</td></tr><tr class="odd"><td><a href="../Document_object/docu6069.md">document.convertToDoc()</a></td><td>Converts a document to expected document type.</td></tr><tr class="even"><td><a href="../Document_object/docume36.md">document.convertToSymbol()</a></td><td>Converts the selected Stage items to a new symbol.</td></tr><tr class="odd"><td><a href="../Document_object/docume37.md">document.crop()</a></td><td>Uses the top selected drawing object to crop all selected drawing objects underneath it.</td></tr><tr class="even"><td><a href="../Document_object/docume40.md">document.debugMovie()</a></td><td>Initiates a debug session with the document.</td></tr><tr class="odd"><td><a href="../Document_object/docume41.md">document.deleteEnvelope()</a></td><td>Deletes the envelope (bounding box that contains one or more objects) from the selected object.</td></tr><tr class="even"><td><a href="../Document_object/docume42.md">document.deletePublishProfile()</a></td><td>Deletes the currently active profile, if there is more than one.</td></tr><tr class="odd"><td><a href="../Document_object/docume43.md">document.deleteScene()</a></td><td>Deletes the current scene (<a href="../Timeline_object/timeline_summary.md">Timeline object</a>), and if the deleted scene was not the last one, sets the next scene as the current Timeline object.</td></tr><tr class="even"><td><a href="../Document_object/docume44.md">document.deleteSelection()</a></td><td>Deletes the current selection on the Stage.</td></tr><tr class="odd"><td><a href="../Document_object/docu6065.md">document.deleteTaggedSwatchAtIndex()</a></td><td>Deletes tagged swatch with given index.</td></tr><tr class="even"><td><a href="../Document_object/docu6066.md">document.deleteTaggedSwatchByName()</a></td><td>Deletes tagged swatch with given name.</td></tr><tr class="odd"><td><a href="../Document_object/docume46.md">document.disableAllFilters()</a></td><td>Disables all filters on the selected objects.</td></tr><tr class="even"><td><a href="../Document_object/docume47.md">document.disableFilter()</a></td><td>Disables the specified filter in the Filters list.</td></tr><tr class="odd"><td><a href="../Document_object/docume48.md">document.disableOtherFilters()</a></td><td>Disables all filters except the one at the specified position in the Filters list.</td></tr><tr class="even"><td><a href="../Document_object/docume49.md">document.distribute()</a></td><td>Distributes the selection.</td></tr><tr class="odd"><td><a href="../Document_object/docume50.md">document.distributeToKeyframes()</a></td><td>Performs a distribute-to-keyframes operation on the current selection; equivalent to selecting Distriute to Keyframes.</td></tr><tr class="even"><td><a href="../Document_object/docume51.md">document.distributeToLayers()</a></td><td>Performs a distribute-to-layers operation on the current selection; equivalent to selecting Distribute to Layers.</td></tr><tr class="odd"><td><a href="../Document_object/docume53.md">document.documentHasData()</a></td><td>Checks the document for persistent data with the specified name.</td></tr><tr class="even"><td><a href="../Document_object/docume54.md">document.duplicatePublishProfile()</a></td><td>Duplicates the currently active profile and gives the duplicate version focus.</td></tr><tr class="odd"><td><a href="../Document_object/docume55.md">document.duplicateScene()</a></td><td>Makes a copy of the currently selected scene, giving the new scene a unique name and making it the current scene.</td></tr><tr class="even"><td><a href="../Document_object/docume56.md">document.duplicateSelection()</a></td><td>Duplicates the selection on the Stage.</td></tr></tbody></table>

<table><thead><tr class="header"><th><strong>Method</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr class="odd"><td><a href="../Document_object/docume57.md">document.editScene()</a></td><td>Makes the specified scene the currently selected scene for editing.</td></tr><tr class="even"><td><a href="../Document_object/docume58.md">document.enableAllFilters()</a></td><td>Enables all the filters on the Filters list for the selected objects.</td></tr><tr class="odd"><td><a href="../Document_object/docume59.md">document.enableFilter()</a></td><td>Enables the specified filter for the selected objects.</td></tr><tr class="even"><td><a href="../Document_object/docume60.md">document.enterEditMode()</a></td><td>Switches the authoring tool into the editing mode specified by the parameter.</td></tr><tr class="odd"><td><a href="../Document_object/docume61.md">document.exitEditMode()</a></td><td>Exits from symbol-editing mode and returns focus to the next level up from the editing mode.</td></tr><tr class="even"><td><a href="../Document_object/docu6070.md">document.exportCanvasPublishTemplate()</a></td><td>Exports the HTML5 Canvas Publishing Template for given document,at the specified location.</td></tr><tr class="even"><td><a href="../Document_object/docume62.md">document.exportInstanceToLibrary()</a></td><td>Export a selected movie clip, graphic, or button instance on the Stage to a new bitmap in the Library.</td></tr><tr class="odd"><td><p><a href="../Document_object/docume63.md">document.exportInstanceToPNGSequence(</a></p><p><a href="../Document_object/docume63.md">)</a></p></td><td>Export a selected movie clip, graphic, or button instance on the Stage to a series of PNG files on disk.</td></tr><tr class="even"><td><a href="../Document_object/docu6072.md">document.exportMedia()</a></td><td>Generates the required media from the document.</td></tr><tr class="even"><td><a href="../Document_object/docume64.md">document.exportPNG()</a></td><td>Exports the document as one or more PNG files.</td></tr><tr class="odd"><td><a href="../Document_object/docume65.md">document.exportPublishProfile()</a></td><td>Exports the currently active profile to an XML file.</td></tr><tr class="even"><td><a href="../Document_object/docume66.md">document.exportPublishProfileString()</a></td><td>Returns a string that specifies, in XML format, the specified profile.</td></tr><tr class="even"><td><a href="../Document_object/docu6074.md">document.exportSVG()</a></td><td>Exports the document in SVG format.</td></tr><tr class="odd"><td><a href="../Document_object/docume67.md">document.exportSWF()</a></td><td>Exports the document in the Flash SWF format.</td></tr><tr class="even"><td><a href="../Document_object/docume68.md">document.exportVideo()</a></td><td>Exports a video from the document and optionally sends it to Adobe Media Encoder to convert the video.</td></tr><tr class="odd"><td><a href="../Document_object/docume72.md">document.getAlignToDocument()</a></td><td>Identical to retrieving the value of the To Stage button in the Align panel.</td></tr><tr class="even"><td><a href="../Document_object/docume73.md">document.getBlendMode()</a></td><td>Returns a string that specifies the blending mode for the selected objects.</td></tr><tr class="odd"><td><a href="../Document_object/docume74.md">document.getCustomFill()</a></td><td>Retrieves the fill object of the selected shape, or the Tools panel and Property inspector if specified.</td></tr><tr class="even"><td><a href="../Document_object/docume75.md">document.getCustomStroke()</a></td><td>Returns the stroke object of the selected shape, or the Tools panel and Property inspector if specified.</td></tr><tr class="odd"><td><a href="../Document_object/docume76.md">document.getDataFromDocument()</a></td><td>Retrieves the value of the specified data.</td></tr><tr class="even"><td><a href="../Document_object/docume77.md">document.getElementProperty()</a></td><td>Gets the specified Element property for the current selection.</td></tr><tr class="odd"><td><a href="../Document_object/docume78.md">document.getElementTextAttr()</a></td><td>Gets a specified TextAttrs property of the selected Text objects.</td></tr><tr class="even"><td><a href="../Document_object/docume79.md">document.getFilters()</a></td><td>Returns an array that contains the list of filters applied to the currently selected objects.</td></tr><tr class="even"><td><a href="../Document_object/docu6060.md">document.getIndexForTaggedSwatchesPalette()</a></td><td>To get the Tagged Swatches palette index for given palette name.</td></tr><tr class="odd"><td><a href="../Document_object/docume80.md">document.getMetadata()</a></td><td>Returns a string containing the XML metadata associated with the document.</td></tr><tr class="even"><td><a href="../Document_object/docume81.md">document.getMobileSettings()</a></td><td><p>Returns the string passed to</p><p>document.setMobileSettings().</p></td></tr><tr class="odd"><td><a href="../Document_object/docume82.md">document.getPlayerVersion()</a></td><td>Returns a string that represents the targeted player version for the specified document.</td></tr><tr class="even"><td><a href="../Document_object/docume83.md">document.getPublishDocumentData()</a></td><td>Indicates whether publishing of the specified persistent data is enabled for the specified format in the document.</td></tr><tr class="odd"><td><a href="../Document_object/docume84.md">document.getSelectionRect()</a></td><td>Gets the bounding rectangle of the current selection.</td></tr></tbody></table>

| Method | Description |
|--------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| document.getSWFPathFromProfile() (../Document_object/docume85.md) | Gets the full path to the SWF file that is set in the current Publish profile.
| document.getTaggedSwatchAtIndex() (../Document_object/docu6061.md) | Returns the Tagged Swatch with the given index. |
| document.getTaggedSwatchByName() (../Document_object/docu6062.md) | Returns the Tagged Swatch with the given name. |
| document.getTaggedSwatches() (../Document_object/docu6064.md) | Returns array of tagged swatch objects. |
| document.getTaggedSwatchesPaletteList() (../Document_object/docu6063.md) | To get the array of Tagged Swatches palette name list. |
| document.getTelemetryForSwf() (../Document_object/docume86.md) | Indicates whether the "Enable detailed telemetry" checkbox is selected in the Publish Settings dialog. |
| document.getTextString() (../Document_object/docume87.md) | Gets the currently selected text. |
| document.getTimeline() (../Document_object/docume88.md) | Retrieves the current Timeline object (../Timeline_object/timeline_summary.md) in the document. |
| document.getTransformationPoint() (../Document_object/docume89.md) | Gets the location of the transformation point of the current selection. |
| document.group() (../Document_object/docume90.md) | Converts the current selection to a group.
|
| document.importCanvasPublishTemplate() (../Document_object/docu6071.md) | Imports and sets the HTML5 Canvas Publishing Template for given document, from the specified location pathURI. |
| document.importFile() (../Document_object/docume93.md) | Imports a file into the document. |
| document.importPublishProfile() (../Document_object/docume94.md) | Imports a profile from a file. |
| document.importPublishProfileString() (../Document_object/docume95.md) | Imports an XML string that represents a publish profile and sets it as the current profile. |
| document.importSWF() - dropped (../Document_object/docume96.md) | Dropped in Adobe Animate. |
| document.intersect() (../Document_object/docume97.md) | Creates an intersection drawing object from all selected drawing objects. |
| document.loadCuepointXML() - dropped (../Document_object/docum110.md) | Dropped in Adobe Animate. |
| document.match() (../Document_object/docum120.md) | Makes the size of the selected objects the same. |
| document.mouseClick() (../Document_object/docum130.md) | Performs a mouse click from the Selection tool. |
| document.mouseDblClk() (../Document_object/docum140.md) | Performs a double mouse click from the Selection tool. |
| document.moveSelectedBezierPointsBy() (../Document_object/docum150.md) | If the selection contains at least one path with at least one Bézier point selected, this method moves all selected Bézier points on all selected paths by the specified amount. |
| document.moveSelectionBy() (../Document_object/docum160.md) | Moves selected objects by a specified distance. |
| document.optimizeCurves() (../Document_object/docum180.md) | Optimizes smoothing for the current selection, allowing multiple passes, if specified, for optimal smoothing; equivalent to selecting Modify >Shape >Optimize. |
| document.publish() (../Document_object/docum210.md) | Publishes the document according to the active publish settings (File >Publish Settings); equivalent to selecting File >Publish. |
| document.punch() (../Document_object/docum230.md) | Uses the top selected drawing object to punch through all selected drawing objects underneath it. |
| document.removeAllFilters() (../Document_object/docum240.md) | Removes all filters from the selected objects. |
| document.removeDataFromDocument() (../Document_object/docum250.md) | Removes persistent data with the specified name that has been attached to the document. |
| document.removeDataFromSelection() (../Document_object/docum260.md) | Removes persistent data with the specified name that has been attached to the selection. |
| document.removeFilter() (../Document_object/docum270.md) | Removes the specified filter from the Filters list of the selected objects. |
| document.renamePublishProfile() (../Document_object/docum280.md) | Renames the current profile. |
| document.renameScene() (../Document_object/docum290.md) | Renames the currently selected scene in the Scenes panel. |

| Method | Description |
|------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| document.reorderScene() (../Document_object/docum300.md) | Moves the specified scene before another specified scene. |
| document.resetOvalObject() (../Document_object/docum310.md) | Sets all values in the Property inspector to default Oval object settings. |
| document.resetRectangleObject() (../Document_object/docum320.md) | Sets all values in the Property inspector to default Rectangle object settings. |
| document.resetTransformation() (../Document_object/docum330.md) | Resets the transformation matrix; equivalent to selecting Modify >Transform >Remove Transform. |
| document.revert() (../Document_object/docum340.md) | Reverts the specified document to its previously saved version; equivalent to selecting File >Revert. |
| document.rotate3DSelection() (../Document_object/docum350.md) | Applies a 3D rotation to the selection. |
| document.rotateSelection() (../Document_object/docum360.md) | Rotates the selection by a specified number of degrees. |
| document.save() (../Document_object/docum370.md) | Saves the document in its default location; equivalent to selecting File >Save. |
| document.saveAsCopy() (../Document_object/docum390.md) | Saves a copy of the document to a specified location. |
| document.saveAndCompact() - dropped (../Document_object/docum380.md) | Dropped in Adobe Animate. |
| document.scaleSelection() (../Document_object/docum400.md) | Scales the selection by a specified amount; equivalent to using the Free Transform tool to scale the object. |
| document.selectAll() (../Document_object/docum420.md) | Selects all items on the Stage; equivalent to pressing Control+A (Windows) or Command+A (Macintosh) or selecting Edit >Select All. |
| document.selectNone() (../Document_object/docum440.md) | Deselects any selected items. |
| document.setAlignToDocument() (../Document_object/docum450.md) | Sets the preferences for document.align() (../Document_object/docume13.md), document.distribute() (../Document_object/docume49.md), document.match() (../Document_object/docum120.md), and document.space() (../Document_object/docum67.md) to act on the document; equivalent to enabling the To Stage button in the Align panel. |
| document.setBlendMode() (../Document_object/docum460.md) | Sets the blending mode for the selected objects. |
| document.setCustomFill() (../Document_object/docum470.md) | Sets the fill settings for the Tools panel, Property inspector, and any selected shapes. |
| document.setCustomStroke() (../Document_object/docum480.md) | Sets the stroke settings for the Tools panel, Property inspector, and any selected shapes. |
| document.setElementProperty() (../Document_object/docum490.md) | Sets the specified Element property on selected objects in the document. |
| document.setElementTextAttr() (../Document_object/docum500.md) | Sets the specified TextAttrs property of the selected text items to the specified value. |
| document.setFillColor() (../Document_object/docum510.md) | Changes the selection and the tools panel to the specified color. |
| document.setFilterProperty() (../Document_object/docum520.md) | Sets a specified filter property for the currently selected objects. |
| document.setFilters() (../Document_object/docum530.md) | Applies filters to the selected objects. |
| document.setInstanceAlpha() (../Document_object/docum540.md) | Sets the opacity of the instance. |
| document.setInstanceBrightness() (../Document_object/docum550.md) | Sets the brightness for the instance. |
| document.setInstanceTint() (../Document_object/docum560.md) | Sets the tint for the instance. |

| Method | Description |
|--------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| document.setMetadata() (../Document_object/docum570.md) | Sets the XML metadata for the specified document, overwriting any existing metadata. |
| document.setMobileSettings() (../Document_object/docum580.md) | Sets the value of an XML settings string in a mobile FLA file. |
| document.setOvalObjectProperty() (../Document_object/docum590.md) | Specifies a value for a specified property of primitive Oval objects. |
| document.setPlayerVersion() (../Document_object/docum600.md) | Sets the version of the Flash Player targeted by the specified document. |
| document.setRectangleObjectProperty() (../Document_object/docu9643.md) | Specifies a value for a specified property of primitive Rectangle objects. |
| document.setSelectionBounds() (../Document_object/docu9658.md) | Moves and resizes the selection in a single operation. |
| document.setSelectionRect() (../Document_object/docu9689.md) | Draws a rectangular selection marquee relative to the Stage, using the specified coordinates. |
| document.setStageVanishingPoint() (../Document_object/docu9705.md) | Specifies the vanishing point for viewing 3D objects. |
| document.setStageViewAngle() (../Document_object/docu9721.md) | Specifies the perspective angle for viewing 3D objects. |
| document.setStroke() (../Document_object/docu9752.md) | Sets the color, width, and style of the selected strokes. |
| document.setStrokeColor() (../Document_object/docu9768.md) | Changes the stroke color of the selection to the specified color. |
| document.setStrokeSize() (../Document_object/docu9799.md) | Changes the stroke size of the selection to the specified size. |
| document.setStrokeStyle() (../Document_object/docu9814.md) | Changes the stroke style of the selection to the specified style.
|
| document.setTaggedSwatchAtIndex() (../Document_object/docu6067.md) | Replace the tagged swatch with the given index to the given new swatch object.
|
| document.setTaggedSwatchByName() (../Document_object/docu6068.md) | Replace the tagged swatch with the given name to the given new swatch object |
| document.setTextRectangle() (../Document_object/docu9846.md) | Changes the bounding rectangle for the selected text item to the specified size. |
| document.setTextSelection() (../Document_object/docu9861.md) | Sets the text selection of the currently selected text field to the values specified by the startIndex and endIndex values. |
| document.setTextString() (../Document_object/docu9908.md) | Inserts a string of text. |
| document.setTransformationPoint() (../Document_object/docu9939.md) | Moves the transformation point of the current selection. |
| document.skewSelection() (../Document_object/docum5.md) | Skews the selection by a specified amount. |
| document.smoothSelection() (../Document_object/docum21.md) | Smooths the curve of each selected fill outline or curved line. |
| document.space() (../Document_object/docum67.md) | Spaces the objects in the selection evenly. |
| document.straightenSelection() (../Document_object/docum83.md) | Straightens the currently selected strokes; equivalent to using the Straighten button in the Tools panel. |
| document.swapElement() (../Document_object/docum114.md) | Swaps the current selection with the specified one. |
| document.swapStrokeAndFill() (../Document_object/docu5901.md) | Swaps the Stroke and Fill colors. |
| document.testMovie() (../Document_object/docu5948.md) | Executes a Test Movie operation on the document. |
| document.testScene() (../Document_object/docu5979.md) | Executes a Test Scene operation on the current scene of the document. |
| document.traceBitmap() (../Document_object/docu6010.md) | Performs a trace bitmap on the current selection; equivalent to selecting Modify>Bitmap>Trace Bitmap. |
| document.transformSelection() (../Document_object/docu6073.md) | Performs a general transformation on the current selection by applying the matrix specified in the arguments. |
| document.translate3DCenter() (../Document_object/docu6042.md) | Sets the XYZ position around which the selection is translated or rotated. |

| Method | Description |
|--------------------------------------------------|--------------------------------------------------------------|
| document.translate3DSelection() (../Document_object/docu6057.md) | Applies a 3D translation to the selection. |
| document.unGroup() (../Document_object/docu6104.md) | Ungroups the current selection. |
| document.union() (../Document_object/docu6120.md) | Combines all selected shapes into a drawing object. |
| document.unlockAllElements() (../Document_object/docu6135.md) | Unlocks all locked elements on the currently selected frame. |
| document.xmlPanel() (../Document_object/docu6198.md) | Posts a XMLUI dialog box. |

#### Property summary

You can use the following properties with the Document object.

| Property | Description |
|-------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| document.accName (../Document_object/document.md) | A string that is equivalent to the Name field in the Accessibility panel. |
| document.as3AutoDeclare (../Document_object/docume16.md) | A Boolean value that describes whether the instances placed on the Stage are automatically added to user-defined timeline classes. |
| document.as3Dialect (../Document_object/docume17.md) | A string that describes the ActionScript 3.0 "dialect" being used in the specified document. |
| document.as3ExportFrame (../Document_object/docume18.md) | An integer that specifies in which frame to export ActionScript 3.0 classes. |
| document.as3StrictMode (../Document_object/docume19.md) | A Boolean value that specifies whether the ActionScript 3.0 compiler should compile with the Strict Mode option turned on or off. |
| document.as3WarningsMode (../Document_object/docume20.md) | A Boolean value that specifies whether the ActionScript 3.0 compiler should compile with the Warnings Mode option turned on or off. |
| document.asVersion (../Document_object/docume21.md) | An integer that specifies which version of ActionScript is being used in the specified file. |
| document.autoLabel (../Document_object/docume22.md) | A Boolean value that is equivalent to the Auto Label check box in the Accessibility panel. |
| document.backgroundColor (../Document_object/docume23.md) | A string, hexadecimal value, or integer that represents the background color. |
| document.currentPublishProfile (../Document_object/docume38.md) | A string that specifies the name of the active publish profile for the specified document. |
| document.currentTimeline (../Document_object/docume39.md) | An integer that specifies the index of the active timeline. |
| document.description (../Document_object/docume45.md) | A string that is equivalent to the Description field in the Accessibility panel. |
| document.docClass (../Document_object/docume52.md) | Specifies the top-level ActionScript 3.0 class associated with the document. |
| document.externalLibraryPath (../Document_object/docume69.md) | A string that contains a list of items in the document’s ActionScript 3.0 External library path, which specifies the location of SWC files used as runtime shared libraries. |
| document.forceSimple (../Document_object/docume70.md) | A Boolean value that specifies whether the children of the specified object are accessible. |
| document.frameRate (../Document_object/docume71.md) | A float value that specifies the number of frames displayed per second when the SWF file plays; the default is 12. |
| document.height (../Document_object/docume91.md) | An integer that specifies the height of the document (Stage) in pixels. |

| Property | Description |
|---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| document.id (../Document_object/docume92.md) | A unique integer (assigned automatically) that identifies a document during a Flash session. |
| document.library (../Document_object/docume98.md) | Read-only; the library object (../library_object/library_summary.md) for a document. |
| document.libraryPath (../Document_object/docume99.md) | A string that contains a list of items in the document’s ActionScript 3.0 Library path, which specifies the location of SWC files or folders containing SWC files. |
| document.livePreview (../Document_object/docum100.md) | A Boolean value that specifies whether Live Preview is enabled. |
| document.name (../Document_object/docum170.md) | Read-only; a string that represents the name of a document (FLA file). |
| document.path (../Document_object/docum190.md) | Read-only; a string that represents the path of the document, in a platform-specific format. |
| document.pathURI (../Document_object/docum200.md) | Read-only; a string that represents the path of the document, expressed as a file:/// URI. |
| document.publishProfiles (../Document_object/docum220.md) | Read-only; an array of the publish profile names for the document. |
| document.screenOutline - dropped (../Document_object/docum410.md) | Dropped in Adobe Animate. |
| document.selection (../Document_object/docum430.md) | An array of the selected objects in the document. |
| document.silent (../Document_object/docu9971.md) | A Boolean value that specifies whether the object is accessible. |
| document.sourcePath (../Document_object/docum36.md) | A string that contains a list of items in the document’s ActionScript 3.0 Source path, which specifies the location of ActionScript class files. |
| document.swfJPEGQuality (../Document_object/docu5932.md) | An integer that returns the JPEG Quality setting from the current Publish Profile in the document. |
| document.timelines (../Document_object/docu5995.md) | Read-only; an array of Timeline objects (see Timeline object (../Timeline_object/timeline_summary.md)). |
| document.viewMatrix (../Document_object/docu6167.md) | Read-only; a Matrix object (../Matrix_object/matrix_summary.md). |
| document.width (../Document_object/docu6182.md) | An integer that specifies the width of the document (Stage) in pixels. |
| document.zoomFactor (../Document_object/docu6229.md) | Specifies the zoom percent of the Stage at authoring time. |

<span id="document.accName" class="anchor"></span>