# Help on News Ticker

**URL:** https://forum.kirupa.com/t/help-on-news-ticker/213913
**Category:** programming
**Created:** [January 24, 2007, 6:36am UTC](https://forum.kirupa.com/t/help-on-news-ticker/213913 "2007-01-24T06:36:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mjmdotorg](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mjmdotorg](https://forum.kirupa.com/u/mjmdotorg)
#### Post date: [January 24, 2007, 6:36am UTC](https://forum.kirupa.com/t/help-on-news-ticker/213913/1 "2007-01-24T06:36:09Z")

</div>

Hi Everyone!

I just want to know if somebody can help I was doing the news ticker tutorial in my site but the problem is it only show one item on my xml file, im using the file [http://www.kirupa.com/modular/kirupa.xml](http://www.kirupa.com/modular/kirupa.xml)

not the one that was in the exact tutorials, can anybody here knows what should i change in my actionscript below:

[COLOR=#006610]function[/COLOR] [COLOR=#000050]loadXML[/COLOR]COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#006610]if[/COLOR] COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR] [COLOR=#000050]xmlNode[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]firstChild[/COLOR];  
[COLOR=#000050]caption[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#0000ff][][/COLOR];  
desc = [];  
[COLOR=#0000d0]url[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#0000ff][][/COLOR];  
[COLOR=#000050]total[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]xmlNode[/COLOR].[COLOR=#0000d0]childNodes[/COLOR].[COLOR=#0000d0]length[/COLOR];  
[COLOR=#006610]for[/COLOR] [COLOR=#0000ff]([/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]=0[/COLOR]; [COLOR=#000050]i[/COLOR][COLOR=#0000ff]\<[/COLOR][COLOR=#000050]total[/COLOR]; [COLOR=#000050]i[/COLOR][COLOR=#0000ff]++)[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#000050]caption[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]][/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]xmlNode[/COLOR].[COLOR=#0000d0]childNodes[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]][/COLOR].[COLOR=#0000d0]childNodes[/COLOR][COLOR=#0000ff] [0[/COLOR][COLOR=#0000ff]][/COLOR].[COLOR=#0000d0]firstChild[/COLOR].[COLOR=#0000d0]nodeValue[/COLOR];  
[COLOR=#0000ff][COLOR=#000050]desc[/COLOR][[/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]][/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]xmlNode[/COLOR].[COLOR=#0000d0]childNodes[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]][/COLOR].[COLOR=#0000d0]childNodes[/COLOR][COLOR=#0000ff][1[/COLOR][COLOR=#0000ff]][/COLOR].[COLOR=#0000d0]firstChild[/COLOR].[COLOR=#0000d0]nodeValue[/COLOR];  
[COLOR=#0000d0]url[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]][/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]xmlNode[/COLOR].[COLOR=#0000d0]childNodes[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]i[/COLOR][COLOR=#0000ff]][/COLOR].[COLOR=#0000d0]childNodes[/COLOR][COLOR=#0000ff][2[/COLOR][COLOR=#0000ff]][/COLOR].[COLOR=#0000d0]firstChild[/COLOR].[COLOR=#0000d0]nodeValue[/COLOR];  
[COLOR=#0000ff]}[/COLOR]  
[COLOR=#000050]first\_item[/COLOR]COLOR=#0000ff[/COLOR];  
[COLOR=#0000ff]}[/COLOR] [COLOR=#006610]else[/COLOR]  
[COLOR=#0000ff]{[/COLOR] [COLOR=#000050]content[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#666666]“file not loaded!”[/COLOR]; [COLOR=#0000ff]}[/COLOR]  
[COLOR=#0000ff]}[/COLOR]  
[COLOR=#000050]xmlData[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]new[/COLOR] [COLOR=#0000d0]XML[/COLOR]COLOR=#0000ff[/COLOR];  
[COLOR=#000050]xmlData[/COLOR].[COLOR=#0000d0]ignoreWhite[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]true[/COLOR]; [COLOR=#000050]xmlData[/COLOR].[COLOR=#0000d0]onLoad[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]loadXML[/COLOR]; [COLOR=#000050]xmlData[/COLOR].[COLOR=#0000d0]load[/COLOR][COLOR=#0000ff]([/COLOR][COLOR=#666666]“[http://www.kirupa.com/modular/kirupa.xml?blarg=](http://www.kirupa.com/modular/kirupa.xml?blarg=)”[/COLOR][COLOR=#0000ff]+[/COLOR][COLOR=#006610]new[/COLOR] [COLOR=#0000d0]Date[/COLOR]COLOR=#0000ff[/COLOR].[COLOR=#0000d0]getTime[/COLOR]COLOR=#0000ff)[/COLOR];  
[COLOR=#cc00cc]//[/COLOR] [COLOR=#006610]function[/COLOR] [COLOR=#000050]first\_item[/COLOR]COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#000050]delay[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#991010]1000[/COLOR];  
[COLOR=#000050]p[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#991010]0[/COLOR];  
[COLOR=#000050]display[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#000050]p[/COLOR][COLOR=#0000ff]++[/COLOR];  
[COLOR=#0000ff]}[/COLOR]  
[COLOR=#006610] function[/COLOR] [COLOR=#000050]timer[/COLOR]COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#000050]myInterval[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#0000d0]setInterval[/COLOR][COLOR=#0000ff]([/COLOR][COLOR=#000050]ticker[/COLOR], [COLOR=#000050]delay[/COLOR][COLOR=#0000ff])[/COLOR];  
[COLOR=#006610]function[/COLOR] [COLOR=#000050]ticker[/COLOR]COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#0000d0]clearInterval[/COLOR]COLOR=#0000ff[/COLOR];  
[COLOR=#006610]if[/COLOR] [COLOR=#0000ff]([/COLOR][COLOR=#000050]p[/COLOR] [COLOR=#0000ff]==[/COLOR] [COLOR=#000050]total[/COLOR][COLOR=#0000ff])[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#000050]p[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#991010]0[/COLOR];  
[COLOR=#0000ff]}[/COLOR]  
[COLOR=#000050]fadeout[/COLOR]COLOR=#0000ff[/COLOR];  
[COLOR=#0000ff]}[/COLOR]  
[COLOR=#0000ff]}[/COLOR]  
[COLOR=#006610]function[/COLOR] [COLOR=#000050]display[/COLOR]COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR]  
[COLOR=#000050]over[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]new[/COLOR] [COLOR=#000050]TextFormat[/COLOR]COLOR=#0000ff[/COLOR];  
[COLOR=#000050]over[/COLOR].[COLOR=#0000d0]underline[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]true[/COLOR];  
[COLOR=#cc00cc] //[/COLOR]  
[COLOR=#000050] out[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]new[/COLOR] [COLOR=#000050]TextFormat[/COLOR]COLOR=#0000ff[/COLOR];  
[COLOR=#000050]out[/COLOR].[COLOR=#0000d0]underline[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]false[/COLOR];  
[COLOR=#cc00cc]//[/COLOR]  
[COLOR=#000050]newsMC[/COLOR].[COLOR=#000050]newsText[/COLOR].[COLOR=#0000d0]\_alpha[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#991010]100[/COLOR];  
[COLOR=#000050]newsMC[/COLOR].[COLOR=#000050]newsText[/COLOR].[COLOR=#0000d0]text[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]caption[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]pos[/COLOR][COLOR=#0000ff]]+"  
“+[COLOR=#000050]desc[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]pos[/COLOR][COLOR=#0000ff]][/COLOR][/COLOR];[COLOR=#000050] newsMC[/COLOR].[COLOR=#0000d0]onRelease[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff[/COLOR]  
[COLOR=#0000ff]{[/COLOR] [COLOR=#0000d0]getURL[/COLOR][COLOR=#0000ff]([/COLOR][COLOR=#0000d0]url[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#000050]pos[/COLOR][COLOR=#0000ff]][/COLOR], [COLOR=#666666]”\_self"[/COLOR][COLOR=#0000ff])[/COLOR]; [COLOR=#0000ff]}[/COLOR]; [COLOR=#000050]newsMC[/COLOR].[COLOR=#0000d0]onRollOver[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#000050]newsText[/COLOR].[COLOR=#0000d0]setTextFormat[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR]; [COLOR=#000050]newsMC[/COLOR].[COLOR=#0000d0]onRollOut[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#000050]newsText[/COLOR].[COLOR=#0000d0]setTextFormat[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR]; [COLOR=#000050]timer[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#006610]function[/COLOR] [COLOR=#000050]fadeout[/COLOR]COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onEnterFrame[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#006610]if[/COLOR] COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#000050]newsMC[/COLOR].[COLOR=#000050]newsText[/COLOR].[COLOR=#0000d0]\_alpha[/COLOR] [COLOR=#0000ff]-=[/COLOR] [COLOR=#991010]5[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#006610]else[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#000050]display[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#000050]p[/COLOR][COLOR=#0000ff]++[/COLOR]; [COLOR=#006610]delete[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onEnterFrame[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#0000ff]}[/COLOR]; [COLOR=#0000ff]}[/COLOR]

so that it show all the items in the xml file.

Thanks in advance,  
mjmdotorg
