This content has been marked as final.
Show 6 replies
-
1. Re: News Ticker in Flex
BillyB13 Jan 21, 2009 8:01 AM (in response to rahimhaji)Not perfect but works ok.
-
2. Re: News Ticker in Flex
Newsgroup_User Jan 21, 2009 8:03 AM (in response to rahimhaji)
"rahimhaji" <webforumsuser@macromedia.com> wrote in message
news:gl7a3o$lo1$1@forums.macromedia.com...
> Dear Friends,
>
> iam new to Flex, i want to do News ticker in Flex. i done the same in AIR,
> working fine. but i need to convert it into Flex.
>
> my ticker, text has to be pick from xml (form of php) from server. Ticker
> text
> has to move from right to left in the screen. if the user click on the
> text it
> has to lead the link to actual news page (link is available in xml).
>
> Any body can help me? or any ready made flex code is available? i need
> same as
> snackr. but i dont find any ready made code..
>
> pls help me to finish my project....
Use a URLLoader to load the XML. The rest should be identical to what you
already have in AIR.
HTH;
Amy
-
3. Re: News Ticker in Flex
rahimhaji Jan 21, 2009 10:20 PM (in response to BillyB13)Dear Mr.BillyB13,
Thks a lot, i need exactly the same. my ticker has to move from left to right. if i want to include N number of news, from the xml page what should i do? kindly explain me ..find below my sample xml. in this title is the text has to move, and if the user click on the title, it has to go to that link:
<?xml version="1.0" encoding="utf-8"?>
<!-- generator="xyz.com" -->
<rss version="2.0">
<channel>
<item>
<title>Dubai tops Mideast Cities of the Future list</title>
<link> http://www.xyz.com/544406-dubai-tops-mideast-cities-of-the-future-list</link>
<description><![CDATA[Emirate voted best for economic potential, quality of life and infrastructure in new poll.]]></description>
<author>andrew.sambidge@xyz.com ( Andy Sambidge )</author>
<category>Politics & Economics | News</category>
<pubDate>Thu, 22 Jan 2009 07:00:54 +0400</pubDate>
<guid> http://www.xyz.com/544406-dubai-tops-mideast-cities-of-the-future-list</guid>
<enclosure url=" http://www.xyz.com/images/magazines/xyz.com/web/newsletter/sheikh-zayed23_nl.jpg" length="1" type="image/jpg"/>
</item>
<item>
<title>Police chief questions US Consulate closure</title>
<link> http://www.xyz.com/544416-police-chief-questions-us-consulate-closure</link>
<description><![CDATA[Commander says decision to shut for security reasons was 'exaggerated reaction'.]]></description>
<author>andrew.sambidge@abc.com ( Andy Sambidge )</author>
<category>Politics & Economics | News</category>
<pubDate>Thu, 22 Jan 2009 09:06:21 +0400</pubDate>
<guid> http://www.xyz.com/544416-police-chief-questions-us-consulate-closure</guid>
<enclosure url="" length="" type=""/>
</item>
<item>
<title>$4.4bn Qatar port work set to start in 2011</title>
<link> http://www.xyz.com/544413-44bn-qatar-port-plan-set-to-start-in-2011</link>
<description><![CDATA[First phase of mega project slated for completion in 2014, says project chief.<br />
<!-- begin ad tag: ab_en/rss/homepage (468x60) img --><a href=" http://ad.doubleclick.net/jump/ab_en/rss/homepage;sz=468x60;tile=1;ord=1232604714?" target="_blank"><img src=" http://ad.doubleclick.net/ad/ab_en/rss/homepage;sz=468x60;tile=1;ord=1232604714?" width="468" height="60" border="0" alt=""></a><!-- end ad tag -->]]></description>
<author>andrew.sambidge@abc.com ( Andy Sambidge )</author>
<category>Transportation | News</category>
<pubDate>Thu, 22 Jan 2009 08:13:23 +0400</pubDate>
<guid> http://www.xyz.com/544413-44bn-qatar-port-plan-set-to-start-in-2011</guid>
<enclosure url=" http://www.xyz.com/images/magazines/xyz.com/web/newsletter/Port_nl.jpg" length="1" type="image/jpg"/>
</item>
</channel>
</rss>
Thanks and Regards,
Syed Abdul Rahim -
4. Re: News Ticker in Flex
rahimhaji Jan 22, 2009 4:45 AM (in response to BillyB13)BillyB13,
Thks for ur help, i try to put 2 or more text and i made to move from right to left, it it not working. con u pls tell me hw to connect xml data and fill the text on the screen and make it move. and click event is not working for text pls tell me hw to do?
pls download the following link and have a look, i need to create exactly the same ticker..
http://news.bbc.co.uk/2/hi/help/4801459.stm.
Looking for your help..
Thanks and Regards,
Syed Abdul Rahim -
5. Re: News Ticker in Flex
rtalton Jan 22, 2009 8:13 AM (in response to rahimhaji)raimhaji,
For what you are trying to achieve, you should create your own custom component which retrieves the XML, places each item/story in its own textArea, and animates them across the screen. You can even add a "bumper image" using an Image component to separate each textArea.
A click event handler would be added to each textArea to handle navigation to another web page.
It would take some work, but you'll be happier with the results. I did one this way and it works great. -
6. News Ticker in Flex
BillyB13 Jan 22, 2009 11:39 AM (in response to rtalton)Here is another routine that works and is simpler to implement:
http://justinjmoses.wordpress.com/2008/10/27/flex-horizontal-scrolling-banner/
as to all of the other help/questions you have requested, search the forum. There are great answers to most/all of your questions here.


