[Tutorial Flash CS3] Criar cursor com texto
:: Dicas & Tutoriais :: Flash
Page 1 of 1
[Tutorial Flash CS3] Criar cursor com texto
- 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- Messages : 6962
Points : 2524
Reputação : 449
Localização : Lisbon
Similar topics
» Criar Banner em Flash
» [Tutorial photoshop] Texto transparente
» [Tutorial photoshop] Efeito metalico no texto
» [Tutorial] Resolver o problema da serial no Flash CS4
» [Tutorial photoshop] Criar sign's
» [Tutorial photoshop] Texto transparente
» [Tutorial photoshop] Efeito metalico no texto
» [Tutorial] Resolver o problema da serial no Flash CS4
» [Tutorial photoshop] Criar sign's
:: Dicas & Tutoriais :: Flash
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|