Is the SWF file on the same domain?
Yes. I test the site via local server, so swf file in the same location, as whole site.
try tracing relevant variable values at startup...
I tried, but there’s no some special variables. I’ll explain.
1. For Flash will not understand HTML tags as XML tags I created snippet HTML2XML_Converter:
<?php
include_once('manager/includes/config.inc.php');
include_once(MODX_MANAGER_PATH.'/includes/document.parser.class.inc.php');
include_once('classes/docAPI.php');
$modx = new DocumentParser;
$doc=new Document($docId);
$content=htmlentities($doc->get('content'));
echo $content;
?>
2. I created template with this content:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<password>[*password*]</password>
<pagetitle>[*pagetitle*]</pagetitle>
<content>[!HTML2XML_Converter? &docId=`[*id*]`!]</content>
</root>
as a result I recieved this XML:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<password><password/>
<pagetitle>Главная страница</pagetitle>
−
<content>
<h3>Install Successful!</h3>
<p>You have successfully installed and configured MODx. We hope you find this site an adequate starting configuration for many small business, organization or personal websites; just change out the template and add your own content and snippets, and you'll be good to go! </p>
<h3>Getting Help</h3>
<p>The <a href="http://modxcms.com/modx-team.html" target="_blank">team behind MODx</a> strives to contantly add to and refine the documentation to help you get up to speed with MODx:</p>
<ul>
<li>For basic instructions on integrating custom templates into MODx, please see the <a href="http://modxcms.com/designer-guide.html" target="_blank">Designer's Guide</a>. </li>
<li>For an introduction to working in MODx from the content editors perspectve, see the <a href="http://modxcms.com/editor-guide.html" target="_blank">Content Editor's Guide</a>. </li>
<li>For a detailed overview of the backend "manager" and setting up Users and Groups, please peruse the <a href="http://modxcms.com/developers-guide.html" target="_blank">Administration Guide</a>.</li>
<li>For developers, architecture and API documentation can be found in the <a href="http://modxcms.com/administration-guide.html" target="_blank">Developer's Guide</a>.</li>
<li>And if someone has installed this site for you, but you're curious as to the steps they went through, please see the <a href="http://modxcms.com/getting-started.html" target="_blank">Getting Started Guide</a>.</li>
</ul>
<p>And don't forget, you can always learn and ask questions at the <a href="http://www.modxcms.com/forums" target="_blank">MODx forums</a>.</p>
</content>
</root>
3. I had changed content-type of whole pages to text/xml
4. In flash action script (external file) I make this code:
var myXML=new XML();
myXML.load("http://my_modx_site.com/main.xml"); //main.xml - is a page with allias named "main" and suffix "xml"
That’s where I recieved error message