The download package comes with the sample.xml source file. This XML source file contains the XML code that describes a board for the tool to render. It can be opened in any text editor to be modified.
The XML source file can be renamed. If you use a different file name, update FlashVars in the web page like this:
If the XML source is not in the same directory as your web page file, its URLs must contain the appropriate relative or absolute file paths in the web page. Example:
The source can be any XML source. It can either be a static XML document prepared manually, or any script file that generates the XML code dynamically. For example, a PHP script can be used to output the XML code (see Scripting):
To pass the XML code to the tool from the web page without using an independent XML source file, replace xml_source with xml_data, and pass the XML code without line breaks like this:
'FlashVars', "xml_data=<slickboard><object><rect fill_color='FF0000' /></object></slickboard>"
Notice that the FlashVars value is now between double-quotes to accommodate the single-quotes in the XML code.
Browsers have undocumented limits on the amount of data passed to Flash this way. Test your board on all browsers. Use this method at your risk.
Some characters such as '%' cannot be passed to the tool via xml_data. Avoid this method to avoid its limitations.