Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    actionscript per sequenza immagini

    Salve a tutti, ame servirebbe caricare una sequenza di immagini(una dopo l'altra) però tramite un action script; mi spiego meglio, io devo far apparire una foto dopo l'altra, dove tra una e l'altra ci sai un alpha, e poi finito questa sequenza mi parta la pagina home; quindi a me servirebbe l'action per la sequenza delle foto, e poi alla fine che mi faccia partire pagina.htm.
    Grazie.

    P.S. non ditemi di vedere tra le guide di html.it, perchè nn ne ho trovate e neanche tra le guide di flash(il programma)
    Vi prego sò che è una semplice action però ci capisco ancora poco.
    Aiutatemi, è importantissimo.
    L'unica cosa è sapere come fare in un action una lista di immagini che si caricano una alla volta.

    Grazie ancora.
    Io sono il regista del mio film; scelgo io la trama e finale.

  2. #2
    Non hai cercato dentro il forum

    Se vuoi solo l'AS...accontentato.

    codice:
    maxX=200
    maxY=200
    
    tempo = getTimer();
    pausa = 3000;	
    fadeout = false;
    numvar=1
    miaclip = "img/Roma_Antica_"+numvar+".jpg";
    
    
    
    loadMovie (miaclip, sfondo1);
    loadMovie (miaclip, sfondo2);
    
    preload = function () {
       if (sfondo1.getBytesLoaded() == sfondo1.getBytesTotal() && _root.back1.getBytesTotal()>1024) {
    	     clearInterval(preloadID);
        } else {
    	//_root.barra_mc._xscale = _root.back1.getBytesLoaded()/_root.back1.getBytesTotal()*100;
    	    }
    };
    preloadID = setInterval(preload, 100);
    
    this.onEnterFrame = function() {
    	if (getTimer() - this.tempo >= this.pausa) {
    		this.tempo = getTimer();
    		this.fadeout = true;
    		// ... istruzioni per numero random ...
    		this.numvar = Math.round(Math.random()*5);			if (this.numvar<1) {
    			this.numvar = 1;				}
    		if(this.numvar<=9){this.miaclip = "img/Roma_Antica_0"+this.numvar+".jpg";}
    		else{this.miaclip = "img/Roma_Antica_"+this.numvar+".jpg";}
    	    
    		loadMovie (miaclip, this.sfondo2);
    		preload = function () {
    		//_root.barra_mc._xscale = 0	
    	    if (this.sfondo2.getBytesLoaded() == this.sfondo2.getBytesTotal() && _root.back2.getBytesTotal()>1024) {
    		    clearInterval(preloadID);
    	    } else {
    		//_root.barra_mc._xscale = _root.back2.getBytesLoaded()/_root.back2.getBytesTotal()*100;
    	    }
        };
        preloadID = setInterval(preload, 100);
    	}
    	if (fadeout) {
    		if (this.sfondo1._alpha > 0) {
    			this.sfondo1._alpha -= 5;
    		} else {
    			this.fadeout = false;
    			loadMovie (miaclip, this.sfondo1);
    		}
    	} else {
    		this.sfondo1._alpha = 99;
    	}
    }

  3. #3
    questa è una AS per foto Random con alpha, se le vuoi in sequenza


    codice:
    maxX=200
    maxY=200
    
    tempo = getTimer();
    pausa = 3000;
    fadeout = false;
    numvar=1
    miaclip = "img/Roma_Antica_0"+numvar+".jpg";
    
    
    
    loadMovie (miaclip, sfondo1);
    loadMovie (miaclip, sfondo2);
    
    preload = function () {
       if (sfondo1.getBytesLoaded() == sfondo1.getBytesTotal() && _root.back1.getBytesTotal()>1024) {
    	     clearInterval(preloadID);
        } else {
    	//
    	    }
    };
    preloadID = setInterval(preload, 100);
    
    this.onEnterFrame = function() {
    	if (getTimer() - this.tempo >= this.pausa) {
    		this.tempo = getTimer();
    		this.fadeout = true;
    		
    		this.numvar += 1
    		
    		if (this.numvar>15){ // lanciare la pagina HTML}
    		
    		if(this.numvar<=9){this.miaclip = "img/Roma_Antica_0"+this.numvar+".jpg";}
    		else{this.miaclip = "img/Roma_Antica_"+this.numvar+".jpg";}
    	    
    		loadMovie (miaclip, this.sfondo2);
    		preload = function () {
    			
    	    if (this.sfondo2.getBytesLoaded() == this.sfondo2.getBytesTotal() && _root.back2.getBytesTotal()>1024) {
    		    clearInterval(preloadID);
    	    } else {
    		   //
    	    }
        };
        preloadID = setInterval(preload, 100);
    	}
    	if (fadeout) {
    		if (this.sfondo1._alpha > 0) {
    			this.sfondo1._alpha -= 5;
    		} else {
    			this.fadeout = false;
    			loadMovie (miaclip, this.sfondo1);
    		}
    	} else {
    		this.sfondo1._alpha = 99;
    	}
    }

  4. #4

    scusa postresti

    spiegarmi cosa devo cambiare nella mia action?Vorrei sapere bene i passaggi.
    Grazie.
    Io sono il regista del mio film; scelgo io la trama e finale.

  5. #5
    scusa postresti
    spiegarmi cosa devo cambiare nella mia action ?Vorrei sapere bene i passaggi.
    Grazie.
    Qual'è la tua Action ??


    Gli esempi che ti ho postato sono 2, il primo ha una funzione random
    il secondo ha una funzione per 15 immagini che si chiamano

    Antica_Roma_01.jpg .... Antica_Roma15.jpg

    Ciao

  6. #6
    volevo provare la tua soluzione ma non iresco a ciclare, ovvero mi visualizza foto01.jpg ma poi non mi visualizza le altre.
    io uso Flash 5 quindi ho fatto cosi':
    questo l'ho messo nella timeline

    maxX=200
    maxY=200

    tempo = getTimer();
    pausa = 3000;
    fadeout = false;
    numvar=1
    miaclip = "img/foto0"+numvar+".jpg";



    loadMovie (miaclip, sfondo1);
    loadMovie (miaclip, sfondo2);

    preload = function () {
    if (sfondo1.getBytesLoaded() == sfondo1.getBytesTotal() && _root.back1.getBytesTotal()>1024) {
    clearInterval(preloadID);
    } else {
    //
    }
    };
    preloadID = setInterval(preload, 100);


    ho messo un mc vuoto sullo stage e gli ho assegnato questo:


    onClipEvent (enterFrame) {
    if (getTimer()-this.tempo>=this.pausa) {
    this.tempo = getTimer();
    this.fadeout = true;
    // ... istruzioni per numero random ...
    this.numvar = Math.round(Math.random()*5);
    if (this.numvar<1) {
    this.numvar = 1;
    }
    if (this.numvar<=9) {
    this.miaclip = "img/foto0"+this.numvar+".jpg";
    } else {
    this.miaclip = "img/foto"+this.numvar+".jpg";
    }
    loadMovie (miaclip, this.sfondo2);
    preload = function () { if (this.sfondo2.getBytesLoaded() == this.sfondo2.getBytesTotal() && _root.back2.getBytesTotal()>1024) {clearInterval(preloadID);} else {}};
    preloadID = setInterval(preload, 100);
    }
    if (fadeout) {
    if (this.sfondo1._alpha>0) {
    this.sfondo1._alpha -= 5;
    } else {
    this.fadeout = false;
    loadMovie (miaclip, this.sfondo1);
    }
    } else {
    this.sfondo1._alpha = 99;
    }
    }


    sfondo1 e sfondo2 sonmo mc vuoti?

    -Nextart.it Graphic Solutions

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.