ciao a tutti
ho delle img e le vorrei far scorrere a tempo come sul movie centrale di macromedia
come posso fare?
grazie
ciao a tutti
ho delle img e le vorrei far scorrere a tempo come sul movie centrale di macromedia
come posso fare?
grazie
Raul
In flash5 o mx?
Basta che carichi ciclicamente un'immagine dentro ad un movieclip. Ad esempio, supponendo che tu abbia 10 immagini che si chiamano immagine1.jpg, immagine2.jpg eccetera:
scrivi nel primo frame della timeline
codice:this.createEmptyMovieClip("img_holder", 1); this.counter = 1 function loadIMG(){ this.img_holder.loadMovie("immagine" + this.counter + ".jpg"); if(this.counter < 10){ this.counter++; } else { this.counter = 1; } } this.id = setInterval(loadIMG, 3000); // 3 secondi
scusa se rispondo solo ora
intanto grazie
ho fatto delle prove ho creato 3 swf di nome 1.swf 2.swf 3.swf
ho messo il cod che mi hai suggerito ma non succede nulla...
this.createEmptyMovieClip("img_holder", 1);
this.counter = 1;
function loadIMG(){
this.img_holder.loadMovie(this.counter + ".swf");
if(this.counter < 4){
this.counter++;
} else {
this.counter = 1;
}
}
this.id = setInterval(loadIMG, 1000); // 3 secondi
Raul
codice:this.createEmptyMovieClip("img_holder", 1); this.counter = 1; function loadIMG() { this.img_holder.loadMovie(this.counter + ".swf"); if (this.counter < 4) { this.counter++; } else { this.counter = 1; } } this.id = setInterval(this, "loadIMG", 1000);