
247
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
Example
The following example resets the ActionScript 2.0 Classpath setting to its default value.
fl.resetPackagePaths();
See also
fl.packagePaths
fl.revertDocument()
Availability
Flash MX 2004.
Usage
fl.revertDocument(documentObject)
Parameters
documentObject A Document object. If documentObject refers to the active document, the Document window might
not revert until the script that calls this method finishes executing.
Returns
A Boolean value: true if the Revert operation completes successfully; false otherwise.
Description
Method; reverts the specified FLA document to its last saved version. Unlike the File > Revert menu option, this
method does not display a warning window that asks the user to confirm the operation. See also
document.revert()
and document.canRevert().
To revert a document to the version on the Version Cue server, use fl.revertDocumentToLastVersion().
Example
The following example reverts the current FLA document to its last saved version; any changes made since the last save
are lost.
fl.revertDocument(fl.getDocumentDOM());
fl.revertDocumentToLastVersion()
Availability
Flash CS3 Professional.
Usage
fl.revertDocumentToLastVersion(documentObject)
Parameters
documentObject A Document object.
Commenti su questo manuale