0 Replies Latest reply on Jun 1, 2010 8:58 AM by neq1337

    Flash analog clock - linux problem

    neq1337

        Hello, I've got a problem. I made a simple analog clock, but while it works on Windows it doesn't on Linux. The code is simple:

       

       

      mojeSekundy = new Date();
      sekundy = mojeSekundy.getSeconds();

      mojeMinuty = new Date();
      minuty = mojeMinuty.getMinutes();

      mojeGodziny = new Date();
      godziny = mojeGodziny.getHours();

      mojCzas = getTimer();
      sekundy2 = mojCzas/1000;
      minuty2 = (sekundy + sekundy2) / 60;
      godziny2 = (minuty + minuty2) / 60;

      sekundyZegar = sekundy + sekundy2;
      sec_ = Math.round(sekundyZegar % 60);
      minutyZegar = minuty + minuty2;
      min_ = Math.floor(minutyZegar % 60);
      godzinyZegar = godziny + godziny2;
      hr_ = Math.floor(godzinyZegar % 24);
      setProperty("ws_sekundy_", _rotation, ((sekundyZegar/60)*360));
      setProperty("ws_minuty_", _rotation, ((minutyZegar/60)*360));
      setProperty("ws_godziny_", _rotation, ((godzinyZegar/12)*360));

       

      gotoAndPlay(2);

       

       

      Anyone knows why? Here's a link to *.fla file: http://www.sendspace.com/file/hbg6xs I would be very grateful if you help me:).