See also: SWF Scout library is an ActiveX programming library for SWF flash movies generation library from Visual C++, Visual Basic, Visual Basic.NET, ASP and ASP.NET. Can use existing SWF flash movies as templates for new flash movie generation. ASP source code script to convert multiple RSS and Atom feeds into HTML. Provides ability to filter RSS feeds.
|
Tutorial
How to display RSS/XML news feed in Flash movie using ASP script and SWF Scout library You can download the source code of this example here: asp_rss2flash.zip This page provides information on free script that generates creeping line like Flash movie displaying news from remote RSS feed using SWF Scout library and ASP. This script can be used free of charge on any ASP or ASP.NET web-server and generate Flash movie from RSS feed. To generate Flash movie that displays RSS/XML feed you have to have SWF Scout library installed on you ASP/ASP.NET web-server RSS2flash.ASP script:
'
##### Error message that will be displayed if not items etc
ErrorMessage
= "Error has occured while trying to process " &URLToRSS
& "<BR>Please contact web-master"
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") Set xmlDOM = Server.CreateObject("MSXML2.DomDocument.3.0") If not xmlDOM.LoadXml(RSSXML) Then Set xmlHttp = Nothing ' clear HTTP object Set RSSItems = xmlDOM.getElementsByTagName("item") ' collect all "items" from downloaded RSS RSSItemsCount = RSSItems.Length-1 ' if not <item>..</item> entries, then try
to get <entry>..</entry> End If Set xmlDOM = Nothing ' clear XML
j = -1 For i = 0 To RSSItemsCount for each child in RSSItem.childNodes Select case lcase(child.nodeName) ' now check filter j = J+1 if J<MaxNumberOfItems then Response.Write Replace(ItemContent,"{DESCRIPTION}",RSSDescription) Next ' writing Footer ' Response.End ' uncomment this for use in on-the-fly output 2) Download example
from asp_RSS2Flash.zip Unpack
files to root folder
of your web-server. (This folder is C:\Inetpub\wwwroot\
by default if you use Internet Information Service (IIS)
on Windows 2000 and XP)
3) Now open "http://localhost/rss2flash.html"
(or "http://<your_webserver_name>/rss2flash.html")
in Internet Explorer browser. You will see HTML page with
Flash movie generated from RSS provided in URLtoRSS
variable in RSS2Flash.ASP script above (this flash movie below is
for static and for demo only). When you will use
the script on ASP/ASP.NET web-server it will generate dynamic flash
movie that will download and display latest version of RSS feed):
You can download the source code of this example here: asp_rss2flash.zip See also: |
||||
|
|||||