Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Cambio sfondo

  1. #1
    Utente di HTML.it
    Registrato dal
    Apr 2005
    Messaggi
    86

    Cambio sfondo

    Ciao , ho creato questo script con actionscript :
    Codice PHP:
    ore fscommand2("GetTimeHours");

    if(
    ore 24 && ore <= 6){
         
    tellTarget("mc"){
      
    gotoAndPlay(2);
    }
    }if(
    ore && ore <= 12){
             
    tellTarget("mc"){
      
    gotoAndPlay(3);
    }if(
    ore 12 && ore <= 18){
             
    tellTarget("mc"){
      
    gotoAndPlay(1);
             }
    }if(
    ore 18 && ore <= 24){
             
    tellTarget("mc"){
      
    gotoAndPlay(3);
             }
    }else{
             
    tellTarget("mc"){
      
    gotoAndPlay(2);
             }

    Purtroppo mi da due errori e non capisco dove sono ! ç_ç
    Allego anche la sorgente per chi potesse aiutarmi
    http://www.macaweb.altervista.org/_a...sta_ht/tst.fla
    Grazie !

  2. #2
    Utente di HTML.it
    Registrato dal
    Aug 2002
    Messaggi
    54
    codice:
    ore = fscommand2("GetTimeHours");
    if (ore>24 && ore<=6) {
    	tellTarget ("mc") {
    		gotoAndPlay(2);
    	}
    }
    if (ore>6 && ore<=12) {
    	tellTarget ("mc") {
    		gotoAndPlay(3);
    	} 
    }
    if (ore>12 && ore<=18) {
    	tellTarget ("mc") {
    		gotoAndPlay(1);
    	}
    }
    if (ore>18 && ore<=24) {
    	tellTarget ("mc") {
    		gotoAndPlay(3);
    	}
    } else {
    	tellTarget ("mc") {
    		gotoAndPlay(2);
    	}
    }

  3. #3
    Utente di HTML.it
    Registrato dal
    Apr 2004
    Messaggi
    583
    Non usate più il tellTarget, è Deprecated

    al posto:

    _root.mc.gotoAndPlay(2);

  4. #4
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    ma fscommand2 non è un comando FlashLite?

    @ Mac@ : puoi riportare i due errori sul thread?

  5. #5
    Utente di HTML.it
    Registrato dal
    Apr 2005
    Messaggi
    86
    Sì , dovrebbe andare sia su cellulare che su computer , per il computer son riuscito a risolvere , per il cellulare non va

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.