3 Replies Latest reply on Oct 9, 2007 2:40 AM by Venian

    I can't place the content of a variable in a TextField

    Venian Level 2
      Hi.

      I have a TextField made at authoring time. I need to place the content of a variable in a TextField.
      The variable counts the clicks and i want to display the sum in a TextField.

      Here is the code I made:

      var limit:Number=29;
      var count:Number=0;
      var current:Number=0;
      _root.mask_mc.onPress = function() {
      _root.bat_mc.gotoAndPlay(2);
      if(count<limit) {
      count++;
      }else{
      _root.nextFrame;
      count=0;
      }
      }
      _root.scor_txt.text = count;