Document.pathuri, Document.publish() – Adobe Extending Flash Professional CS5 User Manual
Page 146
124
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
See also
document.pathURI
Availability
Flash CS4 Professional.
Usage
document.pathURI
Description
Read-only property; a string that represents the path of the document, expressed as a file:/// URI. If the document has
never been saved, this property is
undefined
.
Example
The following example displays the path of the first document in the documents array as a file:/// URI string in the
Output panel. You must save the document before running this script. In the example, the file is named test.fla and is
saved in the My Documents folder on a Windows computer.
var filePathURI = flash.documents[0].pathURI;
fl.trace(filePathURI);
// displays file:///C|/Documents%20and%20Settings/
See also
document.publish()
Availability
Flash MX 2004.
Usage
document.publish()
Parameters
None.
Returns
Nothing.
Description
Method; publishes the document according to the active publish settings (File > Publish Settings). This method is
equivalent to selecting File > Publish.