Visualizzazione dei risultati da 1 a 6 su 6
  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2000
    Messaggi
    508

    rotazione banner a tempo

    ciao a tutti
    ho delle img e le vorrei far scorrere a tempo come sul movie centrale di macromedia
    come posso fare?
    grazie
    Raul

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    In flash5 o mx?

  3. #3
    Utente di HTML.it
    Registrato dal
    Oct 2000
    Messaggi
    508
    mx
    Raul

  4. #4
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    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

  5. #5
    Utente di HTML.it
    Registrato dal
    Oct 2000
    Messaggi
    508
    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

  6. #6
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    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);

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.