document.revertToLastVersion()

Availability

Flash CS3 Professional.

Usage

document.revertToLastVersion()

Parameters

None.

Returns

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

Description

Method; if the file can be reverted, displays a dialog box to let the user confirm that the file should be reverted. If the user confirms, this method reverts the file to the version stored on the Version Cue server and logs any errors to the Output panel.

Example

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

fl.getDocumentDOM().revertToLastVersion();

See also

document.canSaveAVersion(), document.saveAVersion(), document.synchronizeWithHeadVersion(), fl.revertDocumentToLastVersion()