1 Reply Latest reply on May 30, 2006 4:59 AM by Newsgroup_User

    Digi watch problems

    Xepfeon
      i'm having a problem with my digital watch i've created i flash 8, the code is clean for errors (sorry the bad spelling) but i can't visualize it.....when i start the movie clip....it's plain blank......can you help me?
      my code is :

      onClipEvent (load)
      { days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday',
      'Thursday', 'Friday', 'Saturday', 'Sunday');
      months = new Array('January', 'February', 'March', 'April', 'May',
      'June', 'July', 'August', 'September', 'October', 'November',
      'December'); timedate = new Date(); }

      onClipEvent (enterFrame) {{ hour = (timedate.getHours());
      minutes = timedate.getMinutes(); seconds = timedate.getSeconds();
      todaydate = timedate.getDate(); day = timedate.getDay();
      dayname = days[day]; month = (timedate.getMonth()+1);
      monthname = months[month-1]; year = timedate.getFullYear();
      if (length(minutes) == 1) { minutes = "0"+minutes;
      }
      }

      currenttime = hour+":"+minutes+":"+seconds;
      currentdate = dayname+" "+monthname+" "+todaydate+" "+year;
      fulldate = dayname+" "+todaydate+" "+year;
      delete timedate;
      timedate = new Date();
      }