fl.revertDocument()
#### Availability
Flash MX 2004.
#### Usage
fl.revertDocument(documentObject)
#### Parameters
documentObject A Document object (../Document_object/document_summary.md). If documentObject refers to the active document, the Document window might not revert until the script that calls this method finishes executing.
#### Returns
A Boolean value: true if the Revert operation completes successfully; false otherwise.
#### Description
Method; reverts the specified FLA document to its last saved version. Unlike the File \Revert menu option, this method does not display a warning window that asks the user to confirm the operation. See also document.revert() (../Document_object/docum340.md) and document.canRevert() (../Document_object/docume26.md).
#### Example
The following example reverts the current FLA document to its last saved version; any changes made since the last save are lost.
javascript
fl.revertDocument(fl.getDocumentDOM());