Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.revertDocument() | |||
Flash MX 2004.
fl.revertDocument(documentObject)
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.
A Boolean value: true if the Revert operation completes successfully; false otherwise.
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() and document.canRevert().
To revert a document to the version on the Version Cue server, use fl.revertDocumentToLastVersion().
The 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());
|
|
|
|