How good are you with ActionScript?
You could write a snippet to query the db for the content field of a particular document (query by id, pagetitle, alias, whatever....).
I am not an ActionScript programmer, hell, I can barely swim in PHP, but perhaps something similar to this to get the content from the document with id 25?
ActionScript:
onClipEvent (load) {
loadVariables("http://yourdomain.url/snippetpage.html?id=25", this, "GET");
}
And the snippet placed on the document with the alias "snippetpage" (should be a blank template with no other content):
<?php
if (!$_GET['id'])
{
return;
}
$documentID = $_GET['id'];
$site_content = $modx->getFullTableName('site_content');
$contentSQL = "SELECT `content` FROM ".$site_content." WHERE `id` = '".$documentID."'";
$contentQuery = $modx->db->query($contentSQL);
$limit = $modx->db->getRecordCount($contentQuery);
if ($limit == 0 || $limit > 1)
{
return;
}
$content = $modx->db->getRow($contentQuery);
return 'content='.$content;
?>
I am hoping that you are more brushed up on your actionscript than I am for dynamically loading text, but that might get you started.
-sD-
Dr. Scotty Delicious, DFPA.