Flash MX 2004.
document.addNewPublishProfile([profileName])
profileName The unique name of the new profile. If you do not specify a name, a default name is provided. This parameter is optional.
An integer that is the index of the new profile in the profiles list. Returns -1 if a new profile cannot be created.
Method; adds a new publish profile and makes it the current one.
The following example adds a new publish profile with a default name and then displays the name of the profile in the Output panel:
fl.getDocumentDOM().addNewPublishProfile();
fl.outputPanel.trace(fl.getDocumentDOM().currentPublishProfile);The following example adds a new publish profile with the name "my profile":
fl.getDocumentDOM().addNewPublishProfile("my profile");