|
|
fl.revertDocument()
AvailabilityFlash
MX 2004.
Usagefl.revertDocument(documentObject)
Parameters- documentObject
- A Document object. If documentObject refers
to the active document, the Document window might not revert until
the script that calls this method finishes executing.
ReturnsA Boolean
value: true if the Revert operation completes successfully; false otherwise.
DescriptionMethod;
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() and document.canRevert().
To
revert a document to the version on the Version Cue server, use fl.revertDocumentToLastVersion().
ExampleThe
following example reverts the current FLA document to its last saved
version; any changes made since the last save are lost.
fl.revertDocument(fl.getDocumentDOM());
|