• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Saving on a mobile device

New Here ,
Oct 16, 2011 Oct 16, 2011

Copy link to clipboard

Copied

Can anyone tell me how to save score/level/etc. information for a game on a mobile device?  Or point me to any tutorials/examples please?

I'm still unsure how to read/write files in the apk (Android).

Basically, I want to allow the player to save his progress at some point so that they can restore it later.

John

TOPICS
ActionScript

Views

541

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2011 Oct 19, 2011

Copy link to clipboard

Copied

LATEST

You may want to try using Flash SharedObjects
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html

I used this method when saving data to an iPhone and it worked well. It's fairly easy to get started with and it writes in the application specific directory on the phone (or app data on windows).

It retains an 'object' type so you can reference items you store through normal object referece ie. myStorageObject.data.username, myStorageObject.data.score etc, (assuming there is data).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines