beautypg.com

Document.exportpublishprofile(), Document.exportpublishprofilestring() – Adobe Extending Flash Professional CS5 User Manual

Page 121

background image

99

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

document.exportPublishProfile()

Availability
Flash MX 2004.

Usage

document.exportPublishProfile(fileURI)

Parameters

fileURI

A string, expressed as a file:/// URI, that specifies the path of the XML file to which the profile is exported.

Returns
Nothing.

Description
Method; exports the currently active profile to an XML file.

Example
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');

See also

document.exportPublishProfileString()

,

document.importPublishProfile()

document.exportPublishProfileString()

Availability
Flash CS4 Professional.

Usage

document.exportPublishProfileString( [profileName] )

Parameters

profileName

A string that specifies the name of the profile to export to an XML string. This parameter is optional.

Returns
An XML string.

Description
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.

This manual is related to the following products: