fl.revertDocumentToLastVersion()

Availability

Flash CS3 Professional.

Usage

fl.revertDocumentToLastVersion(documentObject)

Parameters

documentObject A Document object.

Returns

A Boolean value of true if the document is successfully reverted; false otherwise.

Description

Method; if the file can be reverted, reverts the specified document to the version on the Version Cue server, and logs any errors to the Output panel.

To revert a document to the last version that was saved locally, use fl.revertDocument().

Example

The following example reverts the current document to the version stored on the Version Cue server:

fl.revertDocumentToLastVersion(fl.getDocumentDOM());

See also

document.revertToLastVersion(), fl.downloadLatestVersion(), fl.saveAVersionOfDocument(), fl.synchronizeDocumentWithHeadVersion()