A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [RESOLVED] SharedObject doesn't store array elements?

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    resolved [RESOLVED] SharedObject doesn't store array elements?

    I have a sharedobject, with a custom made Plane class in it:
    Code:
    sharedObject.data.array = new Array(5);
    sharedObject.data.array[2] = new Plane(true, 5, 4);
    sharedObject.flush();
    It seems as though the shared object does not store the array element Plane.
    Maybe i'm doing something else wrong, but will the sharedobject store the plane as wel, or just the Array?

    Edit: I just found out that when flash is shut down and restarted, it will read the object as it was when saved, but turned into a type Object.
    Last edited by omniscient232; 04-18-2010 at 09:42 AM.
    I program in AS3 only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center