document.saveAVersion()

Availability

Flash CS3 Professional.

Usage

document.saveAVersion()

Parameters

None.

Returns

A Boolean value of true if a version of the document is successfully saved to the Version Cue server; false otherwise.

Description

Method; if the file can be saved to the Version Cue server, displays a dialog box to let the user enter version comments, saves a version of the specified document to the server, and logs any errors to the Output panel.

NOTE

If Flash can't save the file because the server credentials have not been cached in the current application session, an authentication failure error is displayed in the Output panel. If this error occurs, the user must use the File > Open dialog box to open the Version Cue workspace with the correct credentials. Subsequent JavaScript API calls to this server will then succeed.

Example

See document.canSaveAVersion().

See also

document.canSaveAVersion(), document.revertToLastVersion(), document.synchronizeWithHeadVersion()