3 Replies Latest reply on Nov 10, 2008 5:38 AM by Devendran

    Actionscript to Stop Clock

    Curious Clouseau
      I have created a Clock in flash using the following actionscript:
      time=new Date(); // time object
      seconds = time.getSeconds()
      minutes = time.getMinutes()
      hours = time.getHours()

      hours = hours + (minutes/60);

      seconds = seconds*6;
      minutes = minutes*6;
      hours = hours*30;


      What I need help with is I want the clock to stop when the time reaches 11h 11min and 11sec.
      What code would I need to use?

      Any help would be appreciated.