|
|
document.addNewPublishProfile()
AvailabilityFlash
MX 2004.
Usagedocument.addNewPublishProfile([profileName])
Parameters- profileName
- The unique name of the new profile. If you do not specify
a name, a default name is provided. This parameter is optional.
ReturnsAn
integer that is the index of the new profile in the profiles list.
Returns -1 if a new profile cannot be created.
DescriptionMethod;
adds a new publish profile and makes it the current one.
ExampleThe
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");
|