# Kirupa news ticker - remove the alpha

**URL:** <https://forum.kirupa.com/t/kirupa-news-ticker-remove-the-alpha/237356>\
**Category:** Uncategorized\
**Created:** [August 29, 2007, 5:13pm UTC](https://forum.kirupa.com/t/kirupa-news-ticker-remove-the-alpha/237356 "2007-08-29T17:13:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Only\_Dust](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@Only\_Dust](https://forum.kirupa.com/u/Only_Dust)\
**Post date:** [August 29, 2007, 5:13pm UTC](https://forum.kirupa.com/t/kirupa-news-ticker-remove-the-alpha/237356/1 "2007-08-29T17:13:33Z")

</div>

How can I remove the alpha, I tried to take off the “newsMC.teste\_mc.newsText.\_alpha = 100;”, but nothing.  
Somebody can help me.

```auto

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.
