-
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.
-
Funkalicious
Look up SharedObject
You can store Strings, Numbers, ints etc. If you want some custom classes you need to use registerClassAlias.
Happy coding!
-
When in doubt ask
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|