1 Reply Latest reply on Nov 13, 2006 10:52 PM by Ankur Arora

    Store a custom class in SharedObject

    Dinghus Level 1
      According to the documentation I can do this. Flash 8.

      import myClass;
      var myObject:Object ;

      myObject = new myClass();

      Then I add in data via methods.

      Then I do this:

      var mySO:SharedObject = SharedObject.getLocal("mySO");
      mySO.theClass = myObject;
      mySO.flush();

      Now when I try to get it out again:

      theObject = mySO.theClass

      it comes up blank and won't work.

      Anybody can tell me how to pull this one off? Is it possible even?