AS 3.0 (TimerEvent.TIMER)
Posted by Administrador | Filed under Actionscript 3.0
A continuación os dejo un ejemplo de una función que vendria a ser el equivalente al uso del setInterval.
// 2 segundos
var tiempo:Timer = new Timer(2000);
tiempo.addEventListener(TimerEvent.TIMER, llamar);
tiempo.start();
function llamar(event:TimerEvent):void {
trace("llamada, llevamos " + getTimer()/1000 + " segundos");
}
Octubre 6th, 2006 at 1:02 pm
[...] Sergio Alvarez As 3.0 (Detectar cursor fuera swf) As 3.0 (Cambiar fps dinámicamente) As 3.0 (Adiós al attachMovie) As 3.0 (Casting de objetos) As 3.0 (TimerEvent.TIMER) As 3.0 (flash.display.Sprite) As 3.0 (flash.utils.Dictionary) [...]
Septiembre 13th, 2007 at 10:04 pm
me parece muy interesante, pero por fa necesito el equivalente de setinterval en java para trabajar con jdbc, les agradeceria mucho escribirme a mi correo gracias