I have a nice little flash slide show that fits my needs perfectly. It is simple. It has a CSS file and an XML file that reside in the same directory as the flash file.
I would like to generate the xml file with EE. I don’t want to have to edit the XML file by hand and I don’t have enough flash experience to edit the flash to look elsewhere for the XML file.
Any suggestions on how to export the XML to a file to the directory where the flash file exists? I’ll take any suggestions at all… or if someone is willing to help out and edit a flash file I can provide the location of the xml template. I don’t have a license for flash or a clue where to begin.
Andy, you can generate the XML file via EE. Just make a template for it, and set its type to xml.
You can generate the list of images from weblog or gallery entries by using the standard EE tags.
Or, here’s an example of a template that uses PHP to read a specific directory that has images in it: (set PHP to output), and this was made to work with SlideShowPro:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album id="" title="" description="" lgPath="/your_directory/" tnPath="" tn="">
<?php
$files = array();
$dir = opendir('/your_server_path/your_directory/');
while(($file = readdir($dir)) !== false)
{
if($file !== '.' && $file !== '..' && !is_dir($file))
{
$files[] = $file;
}
}
closedir($dir);
sort($files);
for($i=0; $i<count($files); $i++)
{
echo ''.$files[$i].';
}
?>
</album>
</gallery>
it outputs:
<gallery>
<album id="" title="" description="" lgPath="/your_directory/" tnPath="" tn="">
1.jpg
12.jpg
2.jpg
3.jpg
6.jpg
8.jpg
9.jpg
</album>
</gallery>
If you call it “images_xml”, you simply point to that within your Flash file, or wherever it is you stick it in your particular application.