Efecto máquina de escribir con actionscript
January 5th, 2007
¿Has pensado en construir tu propio tipo escritor usando Flash? ¿Has soñado con aprender cómo hacer uno sin usar efecto tweening? Bien, la respuesta está en guía.
Bien el código es simple. En el primer fotograma ponemos lo siguiente:
- myText = “Usar actionscript para construir un efecto de maquina de escribir no es difícil. “;
- myText += “\n\n\t\t\t\t\tby forosdeflash.com”;
- c = 1;
- stop();
en el segundo fotograma:
- escribir();
- function escribir() {
- if (c<=myText.length) {
- str.text = myText.substr(0, c);
- c = c+1;
- } else {
- stop();
- }
- }
y en el tercer fotograma:
- gotoAndPlay(2);
Ya tenemos listo nuestro efecto.
Ejemplo:
This movie requires Flash Player 8
Entry Filed under: ActionScript
3 Comments Add your own
1. Jorge | November 8th, 2007 at 12:33
Muchas gracias, va perfecto, creo que empezaré a pasar del swish para este FX :D
Salu2!
2. Jose | February 25th, 2008 at 19:03
¿cómo podría ser con acentos?
3. Gonzalo | November 14th, 2008 at 1:53
está muy bueno y sencillisimo de usar!! gracias!
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed