Flash MX 2004.
document.canRevert()
None.
A Boolean value: true if you can use the document.revert() or fl.revertDocument() methods successfully; false otherwise.
Method; determines whether you can use the document.revert() or fl.revertDocument() method successfully.
The following example checks whether the current document can revert to the previously saved version. If so,fl.getDocumentDOM().revert() restores the previously saved version.
if(fl.getDocumentDOM().canRevert()){
fl.getDocumentDOM().revert();
}