Adding Content to Flowlist: XML and RSS Feed
Updated: Apr 22, 2008
Views: 3685
Description: This tutorial will go through the steps on adding content using a XML document, and setting up a Flickr RSS Feed.
Completed Project:
Complete XML script needed:
Creating the XML Document
To begin, create your xml file using Dreamweaver or a text editor, saving the file with a .xml extension. With a blank document open, create the content tag to start the document:
Now for each of the images that you wish to add you will define its URL path, a description of the item and extra data for the item such as URL link. The following is an example of an image. You will repeat this step for each item that you wish to load.
When you have repeated the above for all items, close the content tag to finish the document:
Setting RSS Feed
Once you have your link to the RSS feed you can either input the link through component inspector. To open component inspector you can click on the component then press (shift F7) or go to windoows>component inspector. Then the component inspector window will open and you can paste your link into the contentRSS property.
You can also set the RSS feed by action script also.
Complete XML script needed:
<content>
<image>
<path><![CDATA[http://www.afcomponents.com/components/flow_list/img_0.jpg]]></path>
<description><![CDATA[FLOW LIST COMPONENT]]></description>
<data><![CDATA[http://www.afcomponents.com/components/flow_list]]></data>
</image>
</content>
<image>
<path><![CDATA[http://www.afcomponents.com/components/flow_list/img_0.jpg]]></path>
<description><![CDATA[FLOW LIST COMPONENT]]></description>
<data><![CDATA[http://www.afcomponents.com/components/flow_list]]></data>
</image>
</content>
Creating the XML Document
To begin, create your xml file using Dreamweaver or a text editor, saving the file with a .xml extension. With a blank document open, create the content tag to start the document:
<content>
Now for each of the images that you wish to add you will define its URL path, a description of the item and extra data for the item such as URL link. The following is an example of an image. You will repeat this step for each item that you wish to load.
<path><![CDATA[http://www.afcomponents.com/components/flow_list/img_2.jpg]]></path>
<description><![CDATA[FLOW LIST COMPONENT]]></description>
<data><![CDATA[http://www.afcomponents.com/components/flow_list]]></data>
<description><![CDATA[FLOW LIST COMPONENT]]></description>
<data><![CDATA[http://www.afcomponents.com/components/flow_list]]></data>
When you have repeated the above for all items, close the content tag to finish the document:
</content>
Setting RSS Feed
Once you have your link to the RSS feed you can either input the link through component inspector. To open component inspector you can click on the component then press (shift F7) or go to windoows>component inspector. Then the component inspector window will open and you can paste your link into the contentRSS property.
You can also set the RSS feed by action script also.
myFlow.contentXML = "http://www.url.com/rss_200"
Other Tutorials
