1 Reply Latest reply on Oct 8, 2007 5:25 AM by Venian

    how to add in flash

    Venian Level 2
      Hi.
      I want to create an application which counts my clicks.
      I want to have a score(textfield) which will record my clicks.
      So when i press the mouse button it will count my clicks.

      Here is the code:

      _root.mask_mc.onPress = function() {
      _root.bat_mc.gotoAndPlay(2);
      _root.scor_txt.text=0++;
      }

      I want the text field to display zero (O) when the application loads, but to add one number everytime i click:

      click 1: 0+1 = displays 1
      click2: 1+1 = displays 2

      Can someone correct my code above?

      Thank you very much.