3 Replies Latest reply on Dec 17, 2007 12:10 AM by nITiNkIlLeRmEeRuT

    using if condition with links – action scripts 2

    bungae111



      I have tried to make a if condition with action scripts 2. I think there might be errors or better way to execute this action scripts. Could anybody help me out on this?


      test_mc.onRelease = function () {
      if (test_mc._currentframe >= 0 && test_mc._currentframe <= 70){
      getURL(" http://www.yahoo.com", "_blank");
      trace(1);
      }

      else if (test_mc._currentframe >= 71 && test_mc._currentframe <=140){
      getURL(" http://www.google.com", "_blank");
      trace(2);
      }

      else (test_mc._currentframe >= 140 && test_mc._currentframe <= 200){
      getURL(" http://www.yahoo.com", "_blank");
      trace(3);
      }
      }


      test_mc.onRelease = function () {
      if (test_mc._currentframe >= 0 && test_mc._currentframe <= 70)
      getURL(" http://www.yahoo.com", "_blank");
      trace(1);
      }
      test_mc.onRelease = function () {
      if (test_mc._currentframe >= 71 && test_mc._currentframe <=140)
      getURL(" http://www.google.com", "_blank");
      trace(2);
      }
      test_mc.onRelease = function () {
      if (test_mc._currentframe >= 140 && test_mc._currentframe <= 200)
      getURL(" http://www.yahoo.com", "_blank");
      trace(3);
      }


      many thanks.