fl.downloadLatestVersion()

Availability

Flash CS3 Professional.

Usage

fl.downloadLatestVersion(fileURI)

Parameters

fileURI
A string, expressed as a file:/// URI, that specifies the local path of the file to be downloaded from the Version Cue server. Only files that are not already opened can be downloaded. If the file specified by fileURI is already open, this method has no effect.

Returns

A Boolean value of true if the file was downloaded successfully; false otherwise.

Description

Method; downloads from the Version Cue server the latest version of a file that is not currently open. To download the latest version of an open file, use document.synchronizeWithHeadVersion().

Example

The following example downloads the file named myFile.fla from the Version Cue server:

fl.downloadLatestVersion("file:///C|/MyFiles/Version Cue/docs/myFile.fla");