Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Tutorial Flash CS3] Criar cursor com texto

Go down

[Tutorial Flash CS3] Criar cursor com texto Empty [Tutorial Flash CS3] Criar cursor com texto

Post by .uNR][Hydden Sun Dec 20, 2009 8:51 pm

[Tutorial Flash CS3] Criar cursor com texto Skind


Code:
Text = "stardesigners.vndv.com";    // seu texto
    letters = Text.split("");
    letterformat = new TextFormat(); 
    letterformat.font = "Comic Sans MS";    // fonte a ser usada
    letterformat.align = "center";  // alinhamento
    letterformat.size = "14";  // tamanho da fonte
    letterformat.color = 0x550099;  // cor da fonte
    letterformat.bold = true;  // negrito
    spacing = 6;
    speed = 4;
    for (var LTR = 0; LTR
            mc = _root.createEmptyMovieClip(LTR "l", LTR);
            mc.createTextField(letters[LTR] "t", LTR, LTR*spacing, 10, 20, 20);
            with (mc[letters[LTR] "t"]) {
                    text = letters[LTR];
                    setTextFormat(letterformat);
                    selectable = false;
            }
            if (LTR) {
                    mc.prevClip = _root[(LTR-1) "l"];
                    mc.onEnterFrame = function() {
                            this._x  = (this.prevClip._x-this._x 5)/speed;
                            this._y  = (this.prevClip._y-this._y)/speed;
                    };
            } else {
                    mc.onEnterFrame = function() {
                            this._x  = (_root._xmouse-this._x 10)/speed;
                            this._y  = (_root._ymouse-this._y)/speed;
                    };
            }
    }

Fonte: habboz-forum.net
.uNR][Hydden
.uNR][Hydden

Messages : 6962
Points : 2524
Reputação : 449
Localização : Lisbon

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum