4 Replies Latest reply on Dec 16, 2007 10:40 AM by Anim9or

    Saving Issues

    Anim9or
      Hi, started making my parents a calendar present about a week ago, and I have almost neared completion. Since I did not know how to get the dates to change color if there is something planned then, I came up wit a flagging system in which the user pulls a flag off a menu and drags it to the necessary date, then, they press save. However, I have run into some trouble.
      The saving feature stopped working for no comprehensible reason. First of all here's the code:

      [ Code for loading (on the frame)
      stop();
      this.pos = SharedObject.getLocal("Flag21");
      this.flag._x = this.pos.data.flagx;
      this.flag._y = this.pos.data.flagy;
      this.pos = SharedObject.getLocal("Flag22");
      this.flag2._x = this.pos.data.flag2x;
      this.flag2._y = this.pos.data.flag2y;
      this.pos = SharedObject.getLocal("Flag23");
      this.flag3._x = this.pos.data.flag3x;
      this.flag3._y = this.pos.data.flag3y;
      this.pos = SharedObject.getLocal("Flag24");
      this.flag4._x = this.pos.data.flag4x;
      this.flag4._y = this.pos.data.flag4y;
      this.pos = SharedObject.getLocal("Flag25");
      this.flag5._x = this.pos.data.flag5x;
      this.flag5._y = this.pos.data.flag5y;
      this.pos = SharedObject.getLocal("Flag26");
      this.flag6._x = this.pos.data.flag6x;
      this.flag6._y = this.pos.data.flag6y;
      this.pos = SharedObject.getLocal("Flag27");
      this.flag7._x = this.pos.data.flag7x;
      this.flag7._y = this.pos.data.flag7y;
      this.pos = SharedObject.getLocal("Flag28");
      this.flag8._x = this.pos.data.flag8x;
      this.flag8._y = this.pos.data.flag8y;
      this.pos = SharedObject.getLocal("Flag29");
      this.flag9._x = this.pos.data.flag9x;
      this.flag9._y = this.pos.data.flag9y;
      this.pos = SharedObject.getLocal("Flag30");
      this.flag10._x = this.pos.data.flag10x;
      this.flag10._y = this.pos.data.flag10y;
      this.pos = SharedObject.getLocal("Flag31");
      this.flag11._x = this.pos.data.flag11x;
      this.flag11._y = this.pos.data.flag11y;
      this.pos = SharedObject.getLocal("Flag32");
      this.flag12._x = this.pos.data.flag12x;
      this.flag12._y = this.pos.data.flag12y;
      this.pos = SharedObject.getLocal("Flag33");
      this.flag13._x = this.pos.data.flag13x;
      this.flag13._y = this.pos.data.flag13y;
      this.pos = SharedObject.getLocal("Flag34");
      this.flag14._x = this.pos.data.flag14x;
      this.flag14._y = this.pos.data.flag14y;
      this.pos = SharedObject.getLocal("Flag32");
      this.flag15._x = this.pos.data.flag15x;
      this.flag15._y = this.pos.data.flag15y;
      this.pos = SharedObject.getLocal("Flag36");
      this.flag16._x = this.pos.data.flag16x;
      this.flag16._y = this.pos.data.flag16y;
      this.pos = SharedObject.getLocal("Flag37");
      this.flag17._x = this.pos.data.flag17x;
      this.flag17._y = this.pos.data.flag17y;
      this.pos = SharedObject.getLocal("Flag38");
      this.flag18._x = this.pos.data.flag18x;
      this.flag18._y = this.pos.data.flag18y;
      this.pos = SharedObject.getLocal("Flag39");
      this.flag19._x = this.pos.data.flag19x;
      this.flag19._y = this.pos.data.flag19y;
      this.pos = SharedObject.getLocal("Flag40");
      this.flag20._x = this.pos.data.flag20x;
      this.flag20._y = this.pos.data.flag20y;

      b]Code for saving(on save button):
      on (release) {
      this.pos = SharedObject.getLocal("Flag21");
      this.pos.data.flagx = this.flag._x;
      this.pos.data.flagy = this.flag._y;
      this.pos = SharedObject.getLocal("Flag22");
      this.pos.data.flag2x = this.flag2._x;
      this.pos.data.flag2y = this.flag2._y;
      this.pos = SharedObject.getLocal("Flag23");
      this.pos.data.flag3x = this.flag3._x;
      this.pos.data.flag3y = this.flag3._y;
      this.pos = SharedObject.getLocal("Flag24");
      this.pos.data.flag4x = this.flag4._x;
      this.pos.data.flag4y = this.flag4._y;
      this.pos = SharedObject.getLocal("Flag25");
      this.pos.data.flag5x = this.flag5._x;
      this.pos.data.flag5y = this.flag5._y;
      this.pos = SharedObject.getLocal("Flag26");
      this.pos.data.flag6x = this.flag6._x;
      this.pos.data.flag6y = this.flag6._y;
      this.pos = SharedObject.getLocal("Flag27");
      this.pos.data.flag7x = this.flag7._x;
      this.pos.data.flag7y = this.flag7._y;
      this.pos = SharedObject.getLocal("Flag28");
      this.pos.data.flag8x = this.flag8._x;
      this.pos.data.flag8y = this.flag8._y;
      this.pos = SharedObject.getLocal("Flag29");
      this.pos.data.flag9x = this.flag9._x;
      this.pos.data.flag9y = this.flag9._y;
      this.pos = SharedObject.getLocal("Flag30");
      this.pos.data.flag10x = this.flag10._x;
      this.pos.data.flag10y = this.flag10._y;
      this.pos = SharedObject.getLocal("Flag31");
      this.pos.data.flag11x = this.flag11._x;
      this.pos.data.flag11y = this.flag11._y;
      this.pos = SharedObject.getLocal("Flag32");
      this.pos.data.flag12x = this.flag12._x;
      this.pos.data.flag12y = this.flag12._y;
      this.pos = SharedObject.getLocal("Flag33");
      this.pos.data.flag13x = this.flag13._x;
      this.pos.data.flag13y = this.flag13._y;
      this.pos = SharedObject.getLocal("Flag34");
      this.pos.data.flag14x = this.flag14._x;
      this.pos.data.flag14y = this.flag14._y;
      this.pos = SharedObject.getLocal("Flag35");
      this.pos.data.flag15x = this.flag15._x;
      this.pos.data.flag15y = this.flag15._y;
      this.pos = SharedObject.getLocal("Flag36");
      this.pos.data.flag16x = this.flag16._x;
      this.pos.data.flag16y = this.flag16._y;
      this.pos = SharedObject.getLocal("Flag17");
      this.pos.data.flag17x = this.flag17._x;
      this.pos.data.flag17y = this.flag17._y;
      this.pos = SharedObject.getLocal("Flag38");
      this.pos.data.flag18x = this.flag18._x;
      this.pos.data.flag18y = this.flag18._y;
      this.pos = SharedObject.getLocal("Flag39");
      this.pos.data.flag19x = this.flag19._x;
      this.pos.data.flag19y = this.flag19._y;
      this.pos = SharedObject.getLocal("Flag40");
      this.pos.data.flag20x = this.flag20._x;
      this.pos.data.flag20y = this.flag20._y;
      }

      On version 4, the code works fairly fine( a few glitches, but I just have to fix them). However, If you save it under a new name, copy and paste into a new file, or anything else, it just doesn't save. I tried using the original code again in a another file and I had the same problem, which lead me to believe it's a computer glitch.

      Thanks in advance for any advice!