Extending Flash |
|
|
|
| Objects > Document object > document.revertToLastVersion() | |||
Flash CS3 Professional.
document.revertToLastVersion()
None.
A Boolean value of true if the document is successfully reverted; otherwise false.
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.
The following example reverts the current document to the version stored on the Version Cue server:
fl.getDocumentDOM().revertToLastVersion();
document.canSaveAVersion(), document.saveAVersion(), document.synchronizeWithHeadVersion(), fl.revertDocumentToLastVersion()
|
|
|
|