Flash CS4 Professional.
document.exportPublishProfileString( [profileName] )
profileName A string that specifies the name of the profile to export to an XML string. This parameter is optional.
An XML string.
Method: returns a string that specifies, in XML format, the specified profile. If you don’t pass a value for profileName, the current profile is exported.
The following example stores an XML string that represents the current profile in a variable named profileXML and then displays it in the Output panel:
var profileXML=fl.getDocumentDOM().exportPublishProfileString();
fl.trace(profileXML);document.exportPublishProfile(), document.importPublishProfileString()