I'm hoping somewhere here can help. I'm in need of a flash site that I can update dynamically, and I'm trying to figure out how to integrate Silverstripe (open source cms, pretty flexible) with Flash. I'm mostly a designer so my coding knowledge is limited, but I'm learning more about xml, php, and AS as I go along.
I know the basic concept is to have Silverstripe output its content as xml, and have that parsed into Flash. The SS devs have said this is easy, and provided some code (pasted below)...basically SS has a php template (controlling its structure) and a ".ss" template (the xhtml) for each page type.
Where I'm confused is how to link the xml output with my Flash file. It's a music site so if I had a list of upcoming shows outputted in Silverstripe (each show would be a "Child" of a Data Record), how do I call that in the actionscript & on the stage?
From someone over at the SS forum:
Say you want to output all children for a specific page as XML for parsing in flash (in Page_Controller):
Code:
function childrenasxml() {
$pages = $this->dataRecord->Children();
return $this->customise(array('Pages'=>$pages))->renderWith('Pages_xml');
}
the Pages_xml.ss template:
Code:
<pages>
<% control Pages %>
<page>
<title>$Title</title>
</page>
<% end_control %>
</pages>
call via mydomain.com/<mypageurl>/childrenasxml
The above information tells me about the SS end of things, but not what to do within Flash 8 itself.
I have a template I'm working with right now and I'd like to go through and make all the content (the text, at least) dynamic, and I feel a cms would be a lot better to use in the long run than individual text files. Any help is greatly appreciated!