Archivos de May, 2008

Download Day
Thursday, May 29th, 2008

Firefox download day

Mas info y registro aquí

Que raro, robot04 no se ve bien con IE
Saturday, May 24th, 2008

Según parece el blog tiene varios problemas de diseño y funcionalidad con IE.
No tengo la posibilidad de instalarme ese navegador y no puedo corregir los errores de momento.

En unos días estará resuelto.

Spinletters
Saturday, May 24th, 2008

Spinletters es una clase que hice hace tiempo para AS2 y que he retomado hace unos días para AS3.
Consiste en la creación de texto con el efecto máquina de escribir, pero con la particularidad de que la última letra que se introduce va mostrando una serie de caracteres aleatorios hasta que se muestra el carácter real.

This movie requires Flash Player 10

Constructor

var spin:SpinLetters = new SpinLetters(target:TextField, milliseconds:uint = 10, numSpins:uint = 2);

Métodos

spin.doSpin(); // Ejecuta el spin hacia delante.
spin.doReverseSpin(); // Ejecuta el spin en sentido inverso.

Eventos

spin.addEventListener(SpinLettersEvents.START, onStart); // Emitido al inicio del Spin
spin.addEventListener(SpinLettersEvents.COMPLETE, onComplete); // Emitido al completar el Spin

Ejemplo de uso

Actionscript:
import utils.SpinLetters;
import utils.SpinLettersEvents;

var spin:SpinLetters = new SpinLetters(texto1_txt, 20, 5);

texto_txt.text = "";
spin.addEventListener(SpinLettersEvents.COMPLETE, completado);

avanzar.addEventListener(MouseEvent.CLICK, avanzarSpin);
retroceder.addEventListener(MouseEvent.CLICK, retrocederSpin);

function avanzarSpin(evento:MouseEvent):void
{
spin.doSpin();
}
function retrocederSpin(evento:MouseEvent) : void
{
spin.doReverseSpin();
}

function completado(ev:Event) : void
{
//trace("Spin completo!!!");
}

Hello world!
Friday, May 23rd, 2008

Loading... 100%

addChild(robot04New);