3 Replies Latest reply on Jan 26, 2007 8:45 AM by samssa

    SHARED OBJECT DOES NOT WORK

    samssa
      hello
      i'm trying to set a shared object that increase a number in a text field in a page evry time the user reload the page.
      I have 2 layers :
      in the first layer i Put a dynamic text field and assign to it the variable "count"
      in the second layer i put this actionscript:

      mySharedObject = SharedObject.getLocal("counter");
      if (mySharedObject && mySharedObject.data.count != null) {
      mySharedObject.data.count = mySharedObject.data.count++;
      } else {
      mySharedObject.data.count = 1;
      }
      mySharedObject.flush();
      _root.count = mySharedObject.data.count;




      DOES NOT WORK but i can't figure out why
      could someone helpme???