0 Replies Latest reply on Mar 11, 2008 11:04 PM by tegnegi

    Date Problem

    tegnegi Level 1
      I m loading several values like hours, minutes etc through LoadVars ...the problem is when i trace them after they ve successfully loaded, it shows the values but when i try to set the same values to set the time it shows invalid date...The action script code goes like this

      function loadTime() {
      var load_time:LoadVars = new LoadVars();
      load_time.onLoad = function(success:Boolean) {
      if (success) {
      var hrs = Number(this.hours);
      var mins = Number(this.minutes);
      var secs = Number(this.seconds);
      trace("secs "+this.seconds);// shows proper value
      trace("mins "+this.minutes);// shows proper value
      trace("hrs "+this.hours);// shows proper value
      serverTime = new Date();
      trace(serverTime);// shows invalid time
      loaded = true;
      } else {
      trace("error") }
      var send_lv = new LoadVars();
      send_lv.snd = true;
      send_lv.sendAndLoad("sum php file", load_time, "POST");

      Is it the problem with AS or the PH[P coding...Please help...thanx in advance