Flash MX 2004.
document.exportPublishProfile(fileURI)
fileURI A string, expressed as a file:/// URI, that specifies the path of the XML file to which the profile is exported.
Nothing.
Method; exports the currently active profile to an XML file.
The following example exports the currently active profile to the file named profile.xml in the folder /Documents and Settings/username/Desktop on the C drive:
fl.getDocumentDOM().exportPublishProfile('file:///C\|/Documents and Settings/username/Desktop/profile.xml');document.exportPublishProfileString(), document.importPublishProfile()