# Update actionscript

**URL:** <https://forum.kirupa.com/t/update-actionscript/235949>\
**Category:** Uncategorized\
**Created:** [August 15, 2007, 11:59pm UTC](https://forum.kirupa.com/t/update-actionscript/235949 "2007-08-15T23:59:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bern494](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bern494](https://forum.kirupa.com/u/bern494)\
**Post date:** [August 15, 2007, 11:59pm UTC](https://forum.kirupa.com/t/update-actionscript/235949/1 "2007-08-15T23:59:59Z")

</div>

Any body out there help me update this actionscript so I can run it in flash player 7 and above please;  
\<code\>  
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\>\<br\>"+body+"\<br\>\<br\>";  
txt.htmltext = content;  
}  
story = story.nextSibling;  
}  
}  
}  
\</code\>  
many thanks  
Bern
