2 Replies Latest reply on May 30, 2007 6:35 AM by Reece_Neumann

    Countdown Help - further

    Reece_Neumann
      Ok, i want my code to countdown to a specific time within my date.

      What do i have to add to enable it to do this?

      Thanks
        • 1. Re: Countdown Help - further
          Devdoc Level 1
          Hello!

          All you do is set the hour, minute and second properties of your target date object!

          var targetDate:Date = new Date(2007,5,4, 9, 30, 54); // Wed June 4 09:30:54 GMT+0200 2007

          And your code will work ;)
          However i recomend you look in to using some other means of updating the displayed time. onEnterFrame might do it too offen making this metod a bit unpractical. Seeing how we only display the seconds you might only need an interval timer set to 100 ms.
          • 2. Re: Countdown Help - further
            Reece_Neumann Level 1
            Oh ok, thanks.

            I was putting the time in the targetTime variable lol.

            Much opreciated!