Example
The following example clears the current contents of the Output panel:
fl.outputPanel.clear();
outputPanel.save()
Availability
Flash MX 2004;
bUseSystemEncoding
Usage
outputPanel.save(fileURI [, bAppendToFile [ , bUseSystemEncoding ] ])
Parameters
A string, expressed as a file:/// URI, that specifies the local file to contain the
fileURI
contents of the Output panel.
An optional Boolean value. If
bAppendToFile
contents to the output file, and if
exists. The default value is
bUseSystemEncoding
using the system encoding; if
with Byte Order Mark characters at the beginning of the text. The default value is
Returns
Nothing.
Description
Method; saves the contents of the Output panel to a local text file. You can also specify that
the contents be appended to the contents of a local file, rather than being overwritten. If
is invalid or unspecified, an error is reported.
fileURI
This method is useful for batch processing. For example, you can create a JSFL file that
compiles several components. Any compile errors appear in the Output panel, and you can
use this method to save the resulting errors to a text file, which can be automatically parsed by
the build system in use.
Example
The following example saves the Output panel's contents to the batch.log file in the /tests
folder, overwriting the batch.log file if it already exists:
fl.outputPanel.save("file:///c|/tests/batch.log");
parameter added in Flash 8.
, the method overwrites the output file if it already
false
.
false
An optional Boolean value. If
, it saves the Output panel text using UTF-8 encoding,
false
, it appends the Output panel's
true
, it saves the Output panel text
true
outputPanel object
.
false
335
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?