
101
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Example
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);
See also
document.exportPublishProfile(), document.importPublishProfileString()
document.exportSWF()
Availability
Flash MX 2004.
Usage
document.exportSWF([fileURI [, bCurrentSettings]])
Parameters
fileURI A string, expressed as a file:/// URI, 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 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/joe_user/Desktop/qwerty.swf");
The following example displays the Export Movie dialog box and the Export Flash Player dialog box and then exports
the document based on the specified settings:
fl.getDocumentDOM().exportSWF("", true);
The following example displays the Export Movie dialog box and then exports the document based on the specified
settings:
fl.getDocumentDOM().exportSWF();
Commenti su questo manuale