A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Save information from a flash game

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    6

    Save information from a flash game

    Hi,

    Scenario: A games website. A flash game. The player has an option to save the information from the flash game, so the player can view this information later when he/she logins into the games website.

    What do I need to have inorder to make this possible? I would like just a little intro into what its all about, nothing too technical, if anybody can tell me. Thank you.

  2. #2
    Funkalicious TOdorus's Avatar
    Join Date
    Nov 2006
    Location
    Nijmegen, Netherlands
    Posts
    697
    Look up SharedObject

    You can store Strings, Numbers, ints etc. If you want some custom classes you need to use registerClassAlias.

    Happy coding!

  3. #3
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    I have used the following function/code in the game titled gocart for storing the levels completed:
    Code:
    var maxlvl:Number;
    maxlvl=so_jtlvl.data.gme;
    var so_jtlvl:SharedObject = SharedObject.getLocal("gmelevel", "/");
    if(maxlvl==undefined)maxlvl=1;
    function SaveScore() {
    so_jtlvl.data.gme =maxlvl;
    so_jtlvl.flush();
    }
    If you want more information on how to implement this in a game please send a PM to me
    Last edited by Eager Beaver; 12-02-2011 at 03:23 AM.
    <signature removed by admin>

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