ForumsProgramming ForumHow to Save?

4 3429
mystera
offline
mystera
39 posts
Nomad

Hey does anyone know how (using AS2) you can make flash games "save" progress?

thanks in adv.

  • 4 Replies
SlimyGames
offline
SlimyGames
42 posts
Nomad

It is SharedObject, search for it in "Google".

AbnormalIdiot
offline
AbnormalIdiot
110 posts
Nomad

On the first frame of your game add:
GameName = SharedObject.getLocal("GameName", localPath, secure );

Then, when you want to save a value use

_root.GameName.data.level = currentLevel; //assuming currentLevel is a variable.

and to load a value use

currentLevel = _root.GameName.data.level;

Voidcrystal
offline
Voidcrystal
138 posts
Nomad

No flush? And why is there a _root.GameName.data.level?

Voidcrystal
offline
Voidcrystal
138 posts
Nomad

I mean why is there a "_root" ??

Showing 1-4 of 4