# XML Feed - scrolling

**URL:** <https://forum.kirupa.com/t/xml-feed-scrolling/269010>\
**Category:** flash\
**Created:** [August 21, 2008, 1:12pm UTC](https://forum.kirupa.com/t/xml-feed-scrolling/269010 "2008-08-21T13:12:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LittleBob](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@LittleBob](https://forum.kirupa.com/u/LittleBob)\
**Post date:** [August 21, 2008, 1:12pm UTC](https://forum.kirupa.com/t/xml-feed-scrolling/269010/1 "2008-08-21T13:12:38Z")

</div>

I’m new to AS/Flash, and trying to import a feed from XML and have it scroll (looped) across the page. I can import the XML and display it using the code below, but don’t know how to make it scroll. Any ideas?

headlineXML = new XML();

headlineXML.onLoad = myLoad;  
headlineXML.load(“headlines.xml”);

function myLoad(ok) {  
if (ok == true) {  
Publish(this.firstChild);  
}  
}

function Publish(HeadlineXMLNode) {  
if (HeadlineXMLNode.nodeName.toUpperCase() == “BROADCAST”) {  
content = “”;  
story = HeadlineXMLNode.firstChild;  
while (story != null) {  
if (story.nodeName.toUpperCase() == “STORY”) {  
lead = “”;  
body = “”;  
URL = “”;  
element = story.firstChild;  
while (element != null) {  
if (element.nodeName.toUpperCase() == “LEAD”) {  
lead = element.firstChild.nodeValue;  
}  
if (element.nodeName.toUpperCase() == “BODY”) {  
body = element.firstChild.nodeValue;  
}  
if (element.nodeName.toUpperCase() == “URL”) {  
URL = element.firstChild.nodeValue;  
}  
element = element.nextSibling;  
}  
content += “\<font size=’+2’ color=’#3366cc’\>\<a href=’”+URL+"’\>"+lead+"\</a\>\</font\>"+body+"";  
txt.htmltext=content;  
}  
story = story.nextSibling;  
}  
}  
}

Thanks

LB
