Visualizzazione dei risultati da 1 a 3 su 3

Discussione: da vers 6 a 7

  1. #1

    da vers 6 a 7

    vorrei far girare questo codice con flash player 7 (in 6 funziona):

    codice:
    if (c>101) c=1;
    c+=.1;
    
    cnt=numberpanels*c/10;
    
    this.times.going.gotoAndStop(Math.floor(cnt/10));
    this.times.going._alpha=100-(cnt%10)*10;
    this.times.coming.gotoAndStop(Math.ceil(cnt/10));
    this.times.coming._alpha = (cnt%10)*10;
    c e cnt mi danno come valore NaN...

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    codice:
    if(c != undefined){
    	if (c>101) c=1;
    } else {
    	c = 0;
    }
    
    c+=.1;
    
    cnt=numberpanels*c/10;

  3. #3
    grazie Negative

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.