Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.downloadLatestVersion() | |||
Flash CS3 Professional.
fl.downloadLatestVersion(fileURI)
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.
A Boolean value of true if the file was downloaded successfully; false otherwise.
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().
The following example downloads the file named myFile.fla from the Version Cue server:
fl.downloadLatestVersion("file:///C|/MyFiles/Version Cue/docs/myFile.fla");
document.synchronizeWithHeadVersion(), fl.revertDocumentToLastVersion(), fl.saveAVersionOfDocument(), fl.synchronizeDocumentWithHeadVersion()
|
|
|
|