Flash MX 2004.
document.revert()
None.
Nothing.
Method; reverts the specified document to its previously saved version. This method is equivalent to selecting File >Revert.
The following example reverts the current document to the previously saved version:
fl.getDocumentDOM().revert();