8 Replies Latest reply on Feb 20, 2012 3:00 PM by csclark0530

    this is regarding code for a count up timer.....


      I have created a custom count up timer and I have written the code. But I would like for the dynamic text "0" that I created in Flash to be the counter not some random number that pops up when I initiate the counter. What do I need to do for it to recognize the "0" I typed in a text field as where it should started counting? Does this make sense?

      Here is the code:


      var startT:Number = 1;

      var endT:Number =8000000;


      var tf:TextField = this.createTextField('counter', this.getNextHighestDepth(), 10, 10, 300, 22);


      onEnterFrame = function ()


          if (startT >=endT)


              delete onEnterFrame;

              tf.text = String(endT);




              tf.text = String(startT);

              startT += 1;