4 Replies Latest reply on Jul 24, 2009 12:00 PM by chieffan

    DateFormatter Problem

    chieffan Level 1

      I have my date formatter in a funciton withing script tags








      function updateTimer(evt:TimerEvent):void {


      var ms:Number = getTimer() - baseTimer


      var d:Date = new Date(0, 0, 0, 0, 0, 0, ms);

      counter.text = dateFormatter.format(d);



      Everytime I try to run I get 1120: Access of undefined property dateFormatter.


      This is on a timer and I am trying to get the timer value to display in the counter.text box.  This works fine if I don't use the date formatter.  I have also used






      Thanks for the help.