2009 RSS News Ticker v.2
Flash version: 10, ActionScript 3.0.
The 2009 RSS/News Ticker v.2 is a complete solution to display latest titles or RSS news on the website. This ticker can be used as a teaser on the main page of the website. Maine feature od this ticker is the display of description of the news in a tool tip.
The ticker has an settings.xml file. From this file you can set from where the widget is taking the data. It can be local file (feedUrl='news.xml' in our sample) or it can be an RSS feed (feedUrl='www.sportsbooks.ro/sports/en/articles/mlb.xml' in our sample). Please do not include the http since this is compensate by the parser. To activate the widget to get data from remote feed just change the useRemoteFeed to "yes".
For the local xml file you can make a normal RSS structure. The widget would display's a title and an URL to the article. You can add all the item like in the following sample or just title and link. The image can be imported from description if is used a regular expression (img src). You can add all the item like in the following sample or just title and link.
<title>Animal activists decry expanded elephant displays</title>
<pubDate>Thursday, June 18, 2009 11:54 AM</pubDate>
<description><![CDATA[<img src="images/elefant.jpg" width="60" height="60" align="right" />Seven lumbering elephants four of them newcomers are the star attractions in the San Diego Zoo s biggest, most costly expansion in its 90-plus years. They are big animals that make big mess. Watch them now dance.]]></description>
The package includes a small php parser.
Scrolling speed and animation time can be set in the xml file.
In the settings.xml file you can set following parameters: width, height, background colour and background shadow colour of the ticker, the option to set the distance between the ticker and top side. This space is dedicated to the tool tip description. Graphics and fonts can be changed inside the library of the main fla.
To change how the news title would display we have a set of options in the settings.xml. The background corner radius, the arrow and shadow colour can be change in the XML file. The radius of the over state can be set in xml. By default is set to 10. In the same group of settings we added options to set the space for news, left padding and top margin of the title. Another great setting is the title chars limitation. by dafault is set to 50. In this way is possible to limit the number of chars for the news titles that are to long to display in one line. This next setting is important for the URL of the news. By default is set to _blank.
The next group of settings is dedicated to set the tool tip description. Tooltip width, height, corner radiu, background colour, background alpha and shadow colour can be customized from the XML file. Set the thumb width, height, border width and colour from the xml settings.
One of the most important options is the description chars limitation (descCharLimitation). By default is set to 220 characters.
From the XML file the tooltp date and description colour can be edited.
The next group of settings are created to customize the parser for your RSS structure. The parent node name, parent node name, title node, date and and description node can be edited to fit most of the RSS feeds structure.
The news has 2 options. One in normal and another in over state where it can be set the background and font colour.
<mouseOutState titleColor='#ffffff' titleBgColor='#0f0f0f' arrowColor='#76c801' />
<mouseOverState titleColor='#ffffff' titleBgColor='#76c801' arrowColor='#000000' />
CommentsYou need to LOGIN to post a comment.
This file has no comments