estoy haciendo una galleria programada en javascript que llama a botones "thumb" enlazados a unas imagenes "image0", "image1"...
este es el codigo
this.createEmptyMovieClip("images", 100);
this.attachMovie("mask", "mask", 101);
mask._x = images._x =0;
mask._y = target = 52;
images.setMask(mask);
images._y = -1000;
speed = 5;
for (var i = 0; i<8; i++) {
var img = images.attachMovie("image"+i, "image"+i, i);
img._y = img._height*i;
var thumb = this["thumb"+i];
thumb._alpha = 60;
thumb.pos = target+(i*-img._height);
thumb.onPress = function() {
target = this.pos;
};
thumb.onRollOver = function() {
this._alpha = 100;
};
thumb.onRollOut = function() {
this._alpha = 60;
};
}
this.onEnterFrame = function() {
images._y += (target-images._y)/speed;
};
lo que necesito es que aparte de esto, las imagenes se muevan solas una detras de otra, haciendo un scroll automatico se entiende, mientras nadie clicke los botones
al guien sabe como hacerlo?
