Visualizzazione dei risultati da 1 a 3 su 3

Discussione: ELSE senza IF

  1. #1

    ELSE senza IF

    Ciao a tutti, sono nuova del forum e mi chiedevo se qualcuno poteva aiutarmi a capire dove sbaglio....
    Ho trovato questo script su internet e l'ho utilizzato per il mio giardinetto ZEN fatto in flash... ora però quando esporto l'SWF flash mi dice che l'ELSE finale è senza IF...
    ma non trovo l'errore... potete aiutarmi?

    Vi ringrazio!!

    setProperty("lines1", _x, -400);
    setProperty("lines1", _y, -400);
    if (n > 0)
    {
    whichmov = "lines" + n;
    sx = getProperty(whichmov, _x);
    sy = getProperty(whichmov, _y);
    sr = getProperty(whichmov, _rotation);
    setProperty("scraper", _alpha, 100);
    setProperty("scrapershad", _alpha, 100);
    setProperty("scraper", _x, sx);
    setProperty("scraper", _y, sy);
    setProperty("scraper", _rotation, sr);
    setProperty("scrapershad", _x, sx);
    setProperty("scrapershad", _y, sy);
    setProperty("scrapershad", _rotation, sr);
    angle2 = 180 + sr;
    tellTarget("/scrapershad")
    {
    light2 = eval("../:angle2");
    if (Number(light2) > 350)
    {
    light2 = 350;
    } // end if
    light2 = 360 - light2;
    gotoAndStop(int(light2 / 6));
    tellTarget("")
    {
    tint2 = angle2 + 135;
    if (tint2 > 360)
    {
    tint2 = tint2 + (tint2 - 360);
    } // end if
    tint2 = angle2 / 3.600000E+00;
    if (tint2 > 50)
    {
    tint2 = 100 - tint2;
    } // end if
    tellTarget("scraper")
    {
    tinter2 = eval("../:tint2");
    setProperty("1", _alpha, tinter2 * 2);
    setProperty("2", _alpha, tinter2 * 2);

    tellTarget("")
    {
    removeMovieClip ("lines" + n);
    n = n - 1;
    } // End of TellTarget
    } // end else if
    } else
    {
    setProperty("scraper", _alpha, 0);
    setProperty("scrapershad", _alpha, 0);
    gotoAndPlay(3);
    }
    } // End of TellTarget
    } // End of TellTarget

  2. #2
    sarà un problema con le graffe, indenta tutto per bene

  3. #3
    Grazie.. avevi ragione... Grazie ancora!

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.