A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Saving data to pc via shared objects

  1. #1
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126

    Saving data to pc via shared objects

    I will tell you how to save flash data with shared objects

  2. #2
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    I already know :P

    int:
    test = SharedObject.getLocal("test");
    save:
    test.data.score = variable
    load:
    variable = test.data.score
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  3. #3
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126
    I no how to save 1 var at a time...

    save.data.var1 = var1;
    save.data.var2 = var2;
    save.data.var3 = var3;
    save.flush();

    but how do u save and load as a array? I just don't get how that works. I understand arrays, mainly for elements, but I don't know how to save and load with an array...

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