# Kirupa's XML news ticker won't display multiline text box

**URL:** <https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810>\
**Category:** flash\
**Created:** [March 30, 2006, 8:35am UTC](https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810 "2006-03-30T08:35:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChadT523](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@ChadT523](https://forum.kirupa.com/u/ChadT523)\
**Post date:** [March 30, 2006, 8:35am UTC](https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810/1 "2006-03-30T08:35:56Z")

</div>

any idea why, or how to fix this?

The tutorial sample has ‘single line’ selected for its text box, but even after changing this to multiline it doesn’t work.

The ticker is a great tool, but of no use if it’s limited to single lines.  
[http://www.kirupa.com/developer/mx2004/newsticker.htm](http://www.kirupa.com/developer/mx2004/newsticker.htm)

Thanks!

---

<div class="post-metadata">

**Author:** ![G111](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@G111](https://forum.kirupa.com/u/G111)\
**Post date:** [March 30, 2006, 9:16am UTC](https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810/2 "2006-03-30T09:16:53Z")

</div>

> [@ChadT523](#):
>
> any idea why, or how to fix this?
> 
> The tutorial sample has ‘single line’ selected for its text box, but even after changing this to multiline it doesn’t work.
> 
> The ticker is a great tool, but of no use if it’s limited to single lines.  
> [kirupa.com - News Ticker](http://www.kirupa.com/developer/mx2004/newsticker.htm)
> 
> Thanks!

Easy fix off top of my head (domn’t know if it will work in flash i don’t touch it), reduce the font size of the text box or watever it is and just use newline charcters.

e.g.

“My First Line  
My Second Line”

---

<div class="post-metadata">

**Author:** ![charring](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@charring](https://forum.kirupa.com/u/charring)\
**Post date:** [March 30, 2006, 11:51pm UTC](https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810/3 "2006-03-30T23:51:21Z")

</div>

I added another node to the script and of course to the xml file. Track discription below.

function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
caption = [];  
url = [];  
discription = [];  
total = xmlNode.childNodes.length;  
for (i=0; i\<total; i++) {  
caption\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
url\* = xmlNode.childNodes\*.childNodes[1].firstChild.nodeValue;  
discription\* = xmlNode.childNodes\*.childNodes[2].firstChild.nodeValue;

```
    }
    first_item();
} else {
    content = "file not loaded!";
}

```

}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“news.xml?blarg=”+new Date().getTime());  
//  
function first\_item() {  
delay = 5000;  
p = 0;  
display§;  
p++;  
}  
function timer() {  
myInterval = setInterval(ticker, delay);  
function ticker() {  
clearInterval(myInterval);  
if (p == total) {  
p = 0;  
}  
fadeout();  
}  
}  
function display(pos) {  
over = new TextFormat();  
over.underline = true;  
//  
out = new TextFormat();  
out.underline = false;  
//  
newsMC.newsText.\_alpha = 200;  
newsMC.newsText.text = caption[pos]  
newsMC.disText.\_alpha = 200;  
newsMC.disText.text = discription[pos]  
newsMC.onRelease = function() {  
getURL(url[pos], “\_self”);  
};  
newsMC.onRollOver = function() {  
this.newsText.setTextFormat(over);  
};  
newsMC.onRollOut = function() {  
this.newsText.setTextFormat(out);  
};  
timer();

}  
function fadeout() {  
this.onEnterFrame = function() {  
if (newsMC.newsText.\_alpha\>=0 && newsMC.disText.\_alpha\>=0){  
newsMC.newsText.\_alpha -= 5;newsMC.disText.\_alpha -= 5;  
} else {  
display§;  
p++;  
delete this.onEnterFrame;  
}  
};  
}

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 31, 2006, 1:08am UTC](https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810/4 "2006-03-31T01:08:11Z")

</div>

or you could just set the textbox’s word wrap setting to true, im not sure exactly what it is so check the flash dictionary because i know it’s there ;/

---

<div class="post-metadata">

**Author:** ![BFDEXP](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@BFDEXP](https://forum.kirupa.com/u/BFDEXP)\
**Post date:** [April 5, 2006, 4:44pm UTC](https://forum.kirupa.com/t/kirupas-xml-news-ticker-wont-display-multiline-text-box/183810/5 "2006-04-05T16:44:29Z")

</div>

Do you have an example of this or can you send me the fla\>?
