Les cuento, estoy creando una galeria flash, donde mando hablar las imagenes desde un xml como es comun, pero ahora que ya mis botones funcionan y logre leer el xml, quiero hacer lo siguiente, que si los botons para pasar a la siguiente imagen no son presionados en digamos unos 10seg, este pase a la siguient eimagen del xml.
Les anexo mi codigo.

import mx.transitions.Tween;
import mx.transitions.easing.*;
var urls:Array = new Array();
var current:Number;
holder._width = 501;
holder._height = 310;
var x:XML = new XML();
x.ignoreWhite = true;
x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
}
holder.loadMovie(urls[0]);
current = 0;
}
x.load("imagenes.xml");
next.onRelease = function() {
current++;
if(current <= urls.length-1) {
holder.loadMovie(urls[current]);
alphaTw = new Tween(holder, "_alpha", Regular.easeOut, 0, 100, 10, false);
}
if(current > urls.length-1) {
current = 0;
holder.loadMovie(urls[current]);
alphaTw = new Tween(holder, "_alpha", Regular.easeOut, 0, 100, 10, false);
}
}
previous.onRelease = function() {
current--;
if(current >= 0) {
holder.loadMovie(urls[current]);
alphaTw = new Tween(holder, "_alpha", Regular.easeOut, 0, 100, 10, false);
}
if(current < 0) {
current = urls.length-1;
holder.loadMovie(urls[current]);
alphaTw = new Tween(holder, "_alpha", Regular.easeOut, 0, 100, 10, false);
}
}