User Guide

88 Chapter 3: Objects
Parameters
fileURI
A string, expressed as a file://URL, that specifies the path of the XML file to which the
profile is exported.
Returns
Nothing.
Description
Method; exports the currently active profile to a 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');
document.exportSWF()
Availability
Flash MX 2004.
Usage
document.exportSWF( [fileURI]
{, bCurrentSettings] )
Parameters
fileURI
A string, expressed as a file://URL, that specifies the name of the exported file. If
fileURI is empty or not specified, Flash displays the Export Movie dialog box. This parameter is
optional.
bCurrentSettings A Boolean value that, when set to true, causes Flash to use current SWF
publish settings. Otherwise, Flash displays the Export Flash Player dialog box. The default is
false. This parameter is optional.
Returns
Nothing.
Description
Method; exports the document to the specified file in the Flash SWF format.
Example
The following example exports the document to the specified file location with the current
publish settings:
fl.getDocumentDOM().exportSWF("file:///C|/Documents and Settings/gdrieu/
Desktop/qwerty.swf");