Ir para conteúdo
Fórum Script Brasil
  • 0

onde estão as cores?


Hyrax

Pergunta

Pessoal tenho um sitema de news em XML+flash.. e gostaria de trocar as cores dos textos... mas num acho onde trocar... a ultima alternativa é no action script... mais esse eu num manjo muito, alguém poderia destacar onde estão as cores no código abaixo, por favor?

_root.texto.setMask(mask_mc);
if ($tweenManager == undefined)
{
    _global.$tweenManager = new zigo.tweenManager();
} // end if
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
var Mp = MovieClip.prototype;
AsBroadcaster.initialize(Mp);
Mp.$addListener = Mp.addListener;
ASSetPropFlags(Mp, "$addListener", 1, 0);
Mp.addListener = function ()
{
    AsBroadcaster.initialize(this);
    this.$addListener.apply(this, arguments);
};
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2)
{
    if ($tweenManager.isTweenLocked(this))
    {
        trace ("tween not added, this movieclip is locked");
        return;
    } // end if
    if (arguments.length < 2)
    {
        trace ("tween not added, props & pEnd must be defined");
        return;
    } // end if
    if (typeof(props) == "string")
    {
        props = [props];
    } // end if
    if (pEnd.length == undefined)
    {
        pEnd = [pEnd];
    } // end if
    if (seconds == undefined)
    {
        seconds = 2;
    }
    else if (seconds < 1.000000E-002)
    {
        seconds = 0;
    } // end else if
    if (delay < 1.000000E-002 || delay == undefined)
    {
        delay = 0;
    } // end if
    switch (typeof(animType))
    {
        case "string":
        {
            animType = animType.toLowerCase();
            if (animType == "linear")
            {
                var eqf = com.robertpenner.easing.Linear.easeNone;
            }
            else if (animType.indexOf("easeoutin") == 0)
            {
                var t = animType.substr(9);
                t = t.charAt(0).toUpperCase() + t.substr(1);
                var eqf = com.robertpenner.easing[t].easeOutIn;
            }
            else if (animType.indexOf("easeinout") == 0)
            {
                var t = animType.substr(9);
                t = t.charAt(0).toUpperCase() + t.substr(1);
                var eqf = com.robertpenner.easing[t].easeInOut;
            }
            else if (animType.indexOf("easein") == 0)
            {
                var t = animType.substr(6);
                t = t.charAt(0).toUpperCase() + t.substr(1);
                var eqf = com.robertpenner.easing[t].easeIn;
            }
            else if (animType.indexOf("easeout") == 0)
            {
                var t = animType.substr(7);
                t = t.charAt(0).toUpperCase() + t.substr(1);
                var eqf = com.robertpenner.easing[t].easeOut;
            } // end else if
            if (eqf == undefined)
            {
                var eqf = com.robertpenner.easing.Expo.easeOut;
            } // end if
            break;
        } 
        case "function":
        {
            var eqf = animType;
            break;
        } 
        case "object":
        {
            if (animType.ease != undefined && animType.pts != undefined)
            {
                var eqf = animType.ease;
                extra1 = animType.pts;
            }
            else
            {
                var eqf = com.robertpenner.easing.Expo.easeOut;
            } // end else if
            break;
        } 
        default:
        {
            var eqf = com.robertpenner.easing.Expo.easeOut;
        } 
    } // End of switch
    switch (typeof(callback))
    {
        case "function":
        {
            callback = {func: callback, scope: this._parent};
            break;
        } 
        case "string":
        {
            var ilp;
            var funcp;
            var scope;
            var args;
            var a;
            ilp = callback.indexOf("(");
            funcp = callback.slice(0, ilp);
            scope = funcp.slice(0, funcp.lastIndexOf("."));
            func = eval(funcp);
            args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
            var i = 0;
            while (i < args.length)
            {
                a = eval(args[i]);
                if (a != undefined)
                {
                    args[i] = a;
                } // end if
                ++i;
            } // end while
            callback = {func: func, scope: scope, args: args};
            break;
        } 
    } // End of switch
    if ($tweenManager.autoStop)
    {
        $tweenManager.removeTween(this, props);
    } // end if
    if (delay > 0)
    {
        $tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
    }
    else
    {
        $tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
    } // end else if
};
ASSetPropFlags(Mp, "tween", 1, 0);
Mp.stopTween = function (props)
{
    if (typeof(props) == "string")
    {
        props = [props];
    } // end if
    $tweenManager.removeTween(this, props);
};
ASSetPropFlags(Mp, "stopTween", 1, 0);
Mp.isTweening = function ()
{
    return ($tweenManager.isTweening(this));
};
ASSetPropFlags(Mp, "isTweening", 1, 0);
Mp.getTweens = function ()
{
    return ($tweenManager.getTweens(this));
};
ASSetPropFlags(Mp, "getTweens", 1, 0);
Mp.lockTween = function ()
{
    $tweenManager.lockTween(this, true);
};
ASSetPropFlags(Mp, "lockTween", 1, 0);
Mp.unlockTween = function ()
{
    $tweenManager.lockTween(this, false);
};
ASSetPropFlags(Mp, "unlockTween", 1, 0);
Mp.isTweenLocked = function ()
{
    return ($tweenManager.isTweenLocked(this));
};
ASSetPropFlags(Mp, "isTweenLocked", 1, 0);
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2)
{
    this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "alphaTo", 1, 0);
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2)
{
    var _loc3 = 100 - Math.abs(bright);
    var _loc2 = 0;
    if (bright > 0)
    {
        _loc2 = 256 * (bright / 100);
    } // end if
    var _loc5 = {ra: _loc3, rb: _loc2, ga: _loc3, gb: _loc2, ba: _loc3, bb: _loc2};
    this.tween(["_ct_"], [_loc5], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightnessTo", 1, 0);
Mp.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2)
{
    var _loc3 = {rb: destColor >> 16, ra: 0, gb: (destColor & 65280) >> 8, ga: 0, bb: destColor & 255, ba: 0};
    this.tween(["_ct_"], [_loc3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTo", 1, 0);
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2)
{
    var _loc2 = {ra: ra, rb: rb, ga: ga, gb: gb, ba: ba, bb: bb, aa: aa, ab: ab};
    this.tween(["_ct_"], [_loc2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTransformTo", 1, 0);
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2)
{
    this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "scaleTo", 1, 0);
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2)
{
    this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "slideTo", 1, 0);
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2)
{
    this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "rotateTo", 1, 0);
Mp.getFrame = function ()
{
    return (this._currentframe);
};
ASSetPropFlags(Mp, "getFrame", 1, 0);
Mp.setFrame = function (fr)
{
    this.gotoAndStop(Math.round(fr));
};
ASSetPropFlags(Mp, "setFrame", 1, 0);
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
ASSetPropFlags(Mp, "_frame", 1, 0);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2)
{
    if (endframe == undefined)
    {
        endframe = this._totalframes;
    } // end if
    this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "frameTo", 1, 0);
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2)
{
    var _loc2 = 256 * (percent / 100);
    var _loc3 = {ra: 100, rb: _loc2, ga: 100, gb: _loc2, ba: 100, bb: _loc2};
    this.tween(["_ct_"], [_loc3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightOffsetTo", 1, 0);
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2)
{
    var _loc2 = {};
    _loc2.ra = _loc2.ga = _loc2.ba = percent;
    _loc2.rb = _loc2.gb = _loc2.bb = 128 - 1.280000E+000 * percent;
    this.tween(["_ct_"], [_loc2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "contrastTo", 1, 0);
delete Mp;
texto.scrolledMC.news.htmlText = "carregando ..";
mc.title.text = "carregando ..";
texto.scrolledMC.news.html = true;
System.useCodepage = true;
var news_d = new XML();
news_d.ignoreWhite = true;
news_d.onLoad = function ()
{
    mc.title.text = "";
    texto.scrolledMC.news.htmlText = "<b>" + this.childNodes[0].attributes.date + "</b><br>" + this.childNodes[0].attributes.texto + "";
    _global.yeah = this.childNodes.length;
    for (a = 0; a < yeah; a++)
    {
        mc.duplicateMovieClip("mc" + a, a + 1);
        _root["mc" + a]._y = _root["mc" + a]._y + (mc._height + 5.000000E-001) * a;
        _root["mc" + a].title.text = this.childNodes[a].attributes.title;
        _root["mc" + a].mensage = this.childNodes[a].attributes.texto;
        _root["mc" + a].date = this.childNodes[a].attributes.date;
        todos = [];
        for (t = 0; t < yeah; t++)
        {
            todos[t] = _root["mc" + t];
        } // end of for
        _root["mc" + a].onRelease = function ()
        {
            for (i = 0; i < todos.length; i++)
            {
                if (todos[i] == this)
                {
                    this.colorTo(39423, 1);
                    continue;
                } // end if
                todos[i].colorTo(0, 1);
            } // end of for
            texto.scrolledMC.news.htmlText = "<b>" + this.date + "</b><br>" + this.mensage + "";
        };
    } // end of for
};
news_d.load("news.xml");

Agradeço desde já... :lol:

Editado por Hyrax
Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,4k
×
×
  • Criar Novo...