Hello everyone,
I have a problem with a news component that loads data from an XML file and it works perfectly well on its own, but when I use it in my existing project (insert it in the main movie clip), text doesn’t show. I know I need to change something in AS2 .
Maybe someone can help me to figure this out, as it’s getting frustrating not to have it working .
The code that loads XML (it’s hard to get lost here, but I did).
newsViewer = this;
function loadXML(loaded) {
if (loaded) {
var newsTitle = this.firstChild.attributes.newsTitle;
header_txt.htmlText = “<b>”+newsTitle+"</b>";//sets header text
var item = this.firstChild.childNodes;//this collects the news items from the xml into the item variable
var newsTitle = this.firstChild.attributes.newsTitle;
headingColor = this.firstChild.attributes.headingColor;//this is the colour of headings, rollOver effects, buttons, etc.
linkColor = this.firstChild.attributes.linkColor;//this is the color of links
setColor();
newsViewer.box._width = this.firstChild.attributes.width-20;
newsViewer.box._height = this.firstChild.attributes.height-20;
setSizes();
Will appreciate your help.