How can I remove the alpha, I tried to take off the “newsMC.teste_mc.newsText._alpha = 100;”, but nothing.
Somebody can help me.
stop();
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 = "Erro arquivo!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("noticiasFC.xml?blarg="+new Date().getTime());
//
function first_item()
{
delay = 5000;
p = 0;
display(p);
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.teste_mc.newsText._alpha = 100;
newsMC.teste_mc.newsText.text = caption[pos];
newsMC.teste_mc.onRelease = function()
{
getURL(url[pos], "_self");
};
newsMC.teste_mc.onRollOver = function()
{
newsMC.teste_mc.newsText.setTextFormat(over);
};
newsMC.teste_mc.onRollOut = function()
{
newsMC.teste_mc.newsText.setTextFormat(out);
};
timer();
}
function fadeout()
{
this.onEnterFrame = function()
{
if (newsMC.teste_mc.newsText._alpha>=0)
{
newsMC.teste_mc.newsText._alpha -= 5;
}
else
{
display(p);
p++;
delete this.onEnterFrame;
}
};
}
Sorry about my English.