User Guide
outputPanel object 235
outputPanel.save()
Availability
Flash MX 2004.
Usage
outputPanel.save(fileURI [, bAppendToFile])
Parameters
fileURI
A string that specifies the local file to contain the Output panel’s contents.
bAppendToFile optional parameter, if it has a value of true, appends the Output panel’s
contents to the output file. If
bAppendToFile is false, the method overwrites the output file if it
already exists. The default value is
false.
Returns
Nothing.
Description
Method; saves the contents of the Output panel to a local text file, in UTF-8 encoding. The local
filename must be specified as a URI. You can also specify that the contents be appended to the
contents of a local file, rather than being overwritten. If the URI is invalid or unspecified, an error
is reported.
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:
fl.outputPanel.save("file:///c|/tests/batch.log");
outputPanel.trace()
Availability
Flash MX 2004.
Usage
outputPanel.trace(message)
Parameters
The message parameter is a string that contains the text to add to the Output panel.
Returns
Nothing.