# Newstickers help

**URL:** <https://forum.kirupa.com/t/newstickers-help/189008>\
**Category:** Uncategorized\
**Created:** [May 12, 2006, 2:25pm UTC](https://forum.kirupa.com/t/newstickers-help/189008 "2006-05-12T14:25:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinb18](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@martinb18](https://forum.kirupa.com/u/martinb18)\
**Post date:** [May 12, 2006, 2:25pm UTC](https://forum.kirupa.com/t/newstickers-help/189008/1 "2006-05-12T14:25:47Z")

</div>

i need a little help with some action script and xml, ive got a news tickers as such but its shows quotes instead, but my problem is i would like the quotes to crossfade between each other instead of just fading out and poping up. also is it posible to code a xml page to display some parts of text to be bold for example

" the quote is in no bold  
**but the name is in bold**"

[FONT=Courier New][LEFT][AS]

function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
caption = [];  
url = [];  
total = xmlNode.childNodes.length;  
for (i=0; i\<total; i++) {  
caption\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
url\* = xmlNode.childNodes\*.childNodes[1].firstChild.nodeValue;  
}  
first\_item();  
} else {  
content = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load("\<A href=“[http://www.funnycrew.co.uk/quotes/quotes.xml?blarg="+new"](http://www.funnycrew.co.uk/quotes/quotes.xml?blarg=%22+new%22)\>[http://www.funnycrew.co.uk/quotes/quotes.xml?blarg=](http://www.funnycrew.co.uk/quotes/quotes.xml?blarg=)”+new Date().getTime());  
//  
function first\_item() {

delay = 6000;  
p = 0;  
display§;  
p++;  
}  
function timer() {  
myInterval = setInterval(ticker, delay);  
function ticker() {  
clearInterval(myInterval);  
if (p == total) {  
p = 0;  
}  
fadeout();  
}  
}  
function display(pos) {  
newsMC.newsText.\_alpha = 100;  
newsMC.newsText.text = caption[pos];  
timer();  
}  
function fadeout() {  
this.onEnterFrame = function() {  
if (newsMC.newsText.\_alpha\>=0) {  
newsMC.newsText.\_alpha -= 1;  
} else {  
display§;  
p++;  
delete this.onEnterFrame;  
}  
};  
}  
[/LEFT]  
[/FONT]

````auto

 
 

```html
 
 
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<item>
<news>this is non bold text test <b>bold text test</b> </news>
</item>
<item>
<news>Test2</news> 
</item>
<item>
<news>Test3</news> 
</item>
<item>
<news>Test4</news> 
</item>
<item>
<news>Test 5</news>
</item>
<item>
<news>Test 6</news>
</item>
<item>
<news>Test 7</news>
</item>
<item>
<news>Test 8</news>
</item>
</images>
 

````

Thanks in advance  
Martin
