beautypg.com

Document.cansaveaversion(), Document.cantestmovie() – Adobe Extending Flash Professional CS4 User Manual

Page 102

background image

80

EXTENDING FLASH CS4 PROFESSIONAL

Document object

if(fl.getDocumentDOM().canRevert()){

fl.getDocumentDOM().revert();

}

document.canSaveAVersion()

Availability
Flash CS3 Professional.

Usage

document.canSaveAVersion()

Parameters
None.

Returns
A Boolean value of

true

if a version of the file can be saved to the Version Cue server;

false

otherwise.

Description
Method; determines whether a version of the specified document can be saved to the Version Cue server.

Example
The following example tests whether

document.saveAVersion()

can be used. If so, it calls the method.

if(fl.getDocumentDOM().canSaveAVersion()){

fl.getDocumentDOM().saveAVersion;

}

See also

document.revertToLastVersion()

,

document.saveAVersion()

document.canTestMovie()

Availability
Flash MX 2004.

Usage

document.canTestMovie()

Parameters
None.

Returns
A Boolean value:

true

if you can use the

document.testMovie()

method successfully:

false

otherwise.