14 Replies Latest reply on Jan 7, 2011 4:58 AM by Ned Murphy

    This basic script which is work in flash mx2004 but dosent flash8 or New

    Amolshirgave

      hey plz help me........ i want to do simple comparison with two input text box which having amount adding by user..

      i done script its work in flash mx 2004 but not in flash8 why it like this... i am posting that script below hey have look at this & plz help me.........

       

       

      for the script i use two input text with variable input1 & input2 respectively..& one dynamic text with variable display..... & one button, i use script on button...

       

      on (release) {
          a = new Number(input1);
          b = new Number(input2);
          if (a<b) {
              display = "1st text box is having big amount";
          } else if (a>b) {
              display = "2nd text box is having big amount";
          } else if (isNaN(a)) {
              display = "plz insrt no. in 1st text box";
          } else if (isNaN(b)) {
              display = "plz ins no. in 2nd text box";
          } else {
              display = "both text box having equal amount";
          }
      }