
The SlideShowPro Player allows you to load more than one XML document for your gallery. Each file is loaded, and grouped together as a single gallery of content. You may load XML files you coded by hand, albums/galleries from SlideShowPro Director, or Media RSS feeds. And you can mix different XML file types together. This walkthrough will show you how.
OPML stands for "Outline Processor Markup Language" and is a standard way of bundling one or more XML documents. It's essentially an XML file that acts as a container for all your XML files. To create one, open your favorite ASCII/HTML text editor, and enter the following:
<?xml version="1.0"?>
<opml version="1.1">
<head>
<title>My gallery</title>
</head>
<body>
<outline type="" xmlUrl="" />
</body>
</opml>
Your single outline node contains two attributes: type and xmlURL. The latter is an absolute URL to the XML document, while the former dictates the type of XML file the latter contains.
Options for type include rss, xml, and director.
rss should be used when assigning Media RSS feeds, xml should be used when assigning XML files you’ve manually coded, and director should be used when assigning XML File Paths to albums copied from SlideShowPro Director.
For example, here are outline elements containing a regular XML file, a Media RSS feed from Flickr, and an album from SlideShowPro Director:
<outline type="rss"
xmlUrl="http://api.flickr.com/services/feeds/groups_discuss.gne?
id=36521980043@N01&format=rss_200" />
<outline type="xml" xmlUrl="http://mydomain.com/images.xml" />
<outline type="director" xmlUrl="http://mydomain.com/slideshowpro/images.php?album=1" />
When complete, save your OPML file to the folder where you’re publishing your SWF containing your SWF. For the purposes of this walkthrough, we'll name it "opml.xml".
Now depending on which version of the SlideShowPro Player you are using, assign the OPML file path you created as the player's XML File Path and "OPML" as the XML File Type.
Assign XML path to XML File Path and select "OPML" for XML File Type in Flash through the component parameters, or via ActionScript using xmlFilePath and xmlFileType.
Assign xmlFilePath with the OPML file path and xmlFileType with "OPML" as either a flashvar in the player embed code, or with a separate parameter XML file. We explain how to assign parameters here.
Publish a new movie from Flash or save and load your HTML document to test the OPML file.