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=”+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]
```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